Back to class index
| Plane::SetSyntaxvoid Plane::Set(const float4 &v1, const float4 &v2, const float4 &v3); [9 lines of code]Sets this plane by specifying three points on the plane. The normal of the plane will point to the halfspace from which the points are observed to be oriented in counter-clockwise order. Note The points v1, v2 and v3 must not all lie on the same line. Syntaxvoid Plane::Set(const float4 &point, const float4 &normal); [11 lines of code]Sets this plane by specifying a single point on the plane, and the surface normal. Parametersconst float4 &normalThe direction the plane is facing. This vector must have been normalized in advance. |