You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
351 B
16 lines
351 B
#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;
|
|
}
|