GLUT Plane meets Line

From Progzoo
Jump to: navigation, search

Show the point of intersection where the plane A, B, C meets the line DE.

Error creating thumbnail: File missing
Line meets Plane

The normal is shown.

The end points D and E are shown. Also the point of intersection is also marked with a sphere.

GLfloat A[3] = {1, 0, 0};
GLfloat B[3] = {-1, 2, 0};
GLfloat C[3] = {0, 1, 3};
GLfloat D[3] = {-1,-1,-1};
GLfloat E[3] = {1,2,3};

The normal to the plane has also been shown.

[Font] [Default] [Show] [Resize] [History] [Profile]