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.
15 lines
241 B
15 lines
241 B
#include "GMath.h"
|
|
|
|
int main() {
|
|
|
|
GPlane PI(1.0f, 1.0f, 1.0f, -1.0);
|
|
GLine l(GPoint3(0.0f, 0.0f, 0.0f), GVector3(1.0f, 1.0f, 1.0f));
|
|
|
|
GPoint3 p;
|
|
|
|
bool ret = intersect_line_plane(p, l, PI);
|
|
|
|
cout << p << endl;
|
|
|
|
return 0;
|
|
}
|