#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; }