C++:GLUT Parallelepiped

From Progzoo
Jump to: navigation, search

Inside or Outside the Parallepiped

Error creating thumbnail: File missing
Inside or Outside
  • Draw the edges of a parallelepiped (you will need point P as well as vectors A, B and C).
  • Generate random points.
  • Colour the points inside in red and outside in blue.
GLfloat A[3] = {.3,.1,0};
GLfloat B[3] = {0,.5,.2};
GLfloat C[3] = {0,0,1};
GLfloat P[3] = {.3,.3,.3};


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