C++:GLUT Which side of the plane

From Progzoo
Jump to: navigation, search
Error creating thumbnail: File missing
Which side of the plane?
  • Generate 10 or so points at random in the unit cube.
  • Render them as points or little spheres.
  • Colour them so that points on the same side as the origin are red, points on the far side are blue.

The plane is specified by three points A, B and C

GLfloat A[3] = {1,0,0};
GLfloat B[3] = {0,2,0};
GLfloat C[3] = {0,0,3};
[Font] [Default] [Show] [Resize] [History] [Profile]