Simple plane class for intersection slice. More...
#include <Plane.h>
Public Member Functions | |
bool | getIsHit () const |
return the state of ray-plane intersection | |
Plane (ngl::Vector _p0, ngl::Vector _p1, ngl::Vector _p2) | |
ctor | |
void | reset (ngl::Vector _v0, ngl::Vector _v1, ngl::Vector _v2) |
a method to update each of the Boids contained in the system | |
const ngl::Vector & | getFirstV () const |
return the three vertices of the plane | |
const ngl::Vector & | getSecondV () const |
const ngl::Vector & | getThirdV () const |
void | draw (const std::string &_shaderName, ngl::TransformStack &_transformStack) |
method to draw the plane | |
void | drawSphere (const std::string &_shaderName, ngl::TransformStack &_transformStack) |
method to draw the joint | |
void | rayPlaneIntersect (Ray &_ray) |
method to see if ray has intercepted with Plane. |
Simple plane class for intersection slice.
void Plane::draw | ( | const std::string & | _shaderName, | |
ngl::TransformStack & | _transformStack | |||
) |
method to draw the plane
[in] | _transformStack | our transform stack for drawing plane |
[in] | _shaderName | the name of the shader to invoke when drawing |