7 #include "ParaVector3.h" 48 Plane (
float a,
float b,
float c,
float d);
95 inline Plane& Set(
float nx,
float ny,
float nz,
float _d){ normal.x = nx; normal.y = ny; normal.z = nz; d = _d;
return *
this; };
126 inline float PlaneDotCoord(
const Vector3& pV)
const 131 inline float PlaneDotNormal(
const Vector3& pV)
const 138 inline float a()
const {
return normal.x; };
139 inline float b()
const {
return normal.y; };
140 inline float c()
const {
return normal.z; };
149 Plane operator-()
const;
151 operator const float*()
const;
157 return (rhs.d == d && rhs.normal == normal);
159 bool operator!=(
const Plane& rhs)
const 161 return (rhs.d != d && rhs.normal != normal);
164 friend std::ostream& operator<< (std::ostream& o,
const Plane& p);
167 typedef std::vector<Plane> PlaneList;
4-dimensional homogeneous vector.
Definition: ParaVector4.h:10
Vector3 projectVector(const Vector3 &v) const
Project a vector onto the plane.
Definition: ParaPlane.cpp:128
different physics engine has different winding order.
Definition: EventBinding.h:32
float getDistance(const Vector3 &rkPoint) const
This is a pseudo distance.
Definition: ParaPlane.cpp:50
Standard 3-dimensional vector.
Definition: ParaVector3.h:16
Side
The "positive side" of the plane is the half space to which the plane normal points.
Definition: ParaPlane.h:32
AABB-related code.
Definition: ShapeAABB.h:11
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: ParaMatrix4.h:23
Defines a plane in 3D space.
Definition: ParaPlane.h:23
float normalise(void)
Normalizes the plane.
Definition: ParaPlane.cpp:144
bool operator==(const Plane &rhs) const
Comparison operator.
Definition: ParaPlane.h:155
A 3D box aligned with the x/y/z axes.
Definition: ParaAxisAlignedBox.h:16
float dotProduct(const Vector3 &vec) const
Calculates the dot (scalar) product of this vector with another.
Definition: ParaVector3.h:401
void redefine(const Vector3 &rkPoint0, const Vector3 &rkPoint1, const Vector3 &rkPoint2)
Redefine this plane based on 3 points.
Definition: ParaPlane.cpp:112
Plane()
Default constructor - sets everything to 0.
Definition: ParaPlane.cpp:16