|
|
@ -2,11 +2,14 @@ |
|
|
|
|
|
|
|
int main() { |
|
|
|
|
|
|
|
GPlane PI1(GVector3(0.0f, 0.0f, 1.0f), GPoint3(0.0f, 0.0f, 0.0f)); |
|
|
|
GPlane PI2(GPoint3(1.0,0.0f,0.0f), GPoint3(0.0, 1.0f, 0.0f), GPoint3(0.0, 0.0f, 1.0f)); |
|
|
|
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)); |
|
|
|
|
|
|
|
GPlane PI = PI1; |
|
|
|
cout << PI.GetNormal() << endl; |
|
|
|
GPoint3 p; |
|
|
|
|
|
|
|
bool ret = intersect_line_plane(p, l, PI); |
|
|
|
|
|
|
|
cout << p << endl; |
|
|
|
|
|
|
|
return 0; |
|
|
|
} |