#include "GMath.h" int main() { GLine l(GPoint3(0.0f, 0.0f, 0.0f), GVector3(1.0f, 0.0f, 0.0f)); GPoint3 q(0.0f, 0.0f, 1.0f); float d = dist(q, l); cout << d << endl; bool b = l.IsOnLine(GPoint3(0.0f, 0.0f, 0.0f)); bool b2 = l.IsOnLine(GPoint3(0.5f, 0.0f, 0.0f)); bool b3 = l.IsOnLine(GPoint3(0.5f, 0.5f, 0.0f)); return 0; }