Go to the documentation of this file.
150 return (rhs.
d == d && rhs.
normal == normal);
154 return (rhs.
d != d || rhs.
normal != normal);
Plane(const Vector3 &rkNormal, const Vector3 &rkPoint)
Defines a plane in 3D space.
Plane(const Vector3 &rkPoint0, const Vector3 &rkPoint1, const Vector3 &rkPoint2)
Plane(Real a, Real b, Real c, Real d)
Construct a plane using the 4 constants directly.
Side
The "positive side" of the plane is the half space to which the plane normal points.
Vector3 projectVector(const Vector3 &v) const
Project a vector onto the plane.
void redefine(const Vector3 &rkPoint0, const Vector3 &rkPoint1, const Vector3 &rkPoint2)
Redefine this plane based on 3 points.
Side getSide(const Vector3 &rkPoint) const
Plane()
Default constructor - sets everything to 0.
std::ostream & operator<<(std::ostream &o, const TRect< T > &r)
Side getSide(const Vector3 ¢re, const Vector3 &halfSize) const
Returns which side of the plane that the given box lies on.
Real getDistance(const Vector3 &rkPoint) const
This is a pseudodistance.
A 3D box aligned with the x/y/z axes.
bool operator==(const Plane &rhs) const
Comparison operator.
void redefine(const Vector3 &rkNormal, const Vector3 &rkPoint)
Redefine this plane based on a normal and a point.
float Real
Software floating point type.
bool operator!=(const Plane &rhs) const
Real normalise(void)
Normalises the plane.
Plane(const Vector3 &rkNormal, Real fConstant)
Construct a plane through a normal, and a distance to move the plane along the normal.
vector< Plane >::type PlaneList
Standard 3-dimensional vector.
Side getSide(const AxisAlignedBox &rkBox) const
Returns the side where the alignedBox is.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.