C++:GLUT Reflection

From Progzoo
Jump to: navigation, search

Show the vector V being reflected by the plane A, B, C.

Error creating thumbnail: File missing
A Vector is Reflected

V is shown in blue, the normal is in black and the reflection is in aqua. The triangle ABC is in pink.

V is striking the centroid of the triangle.

The centroid is marked by a small green sphere.

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


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