5#ifndef __IRR_PLANE_3D_H_INCLUDED__
6#define __IRR_PLANE_3D_H_INCLUDED__
Axis aligned bounding box in 3d dimensional space.
Template plane class with some intersection testing methods.
EIntersectionRelation3D classifyPointRelation(const vector3d< T > &point) const
Classifies the relation of a point to this plane.
void setPlane(const vector3d< T > &nvect, T d)
vector3d< T > getMemberPoint() const
Gets a member point of the plane.
void setPlane(const vector3d< T > &point1, const vector3d< T > &point2, const vector3d< T > &point3)
plane3d(const vector3d< T > &normal, const T d)
f32 getKnownIntersectionWithLine(const vector3d< T > &linePoint1, const vector3d< T > &linePoint2) const
Get percentage of line between two points where an intersection with this plane happens.
bool existsIntersection(const plane3d< T > &other) const
Tests if there is an intersection with the other plane.
void recalculateD(const vector3d< T > &MPoint)
Recalculates the distance from origin by applying a new member point to the plane.
bool getIntersectionWithLimitedLine(const vector3d< T > &linePoint1, const vector3d< T > &linePoint2, vector3d< T > &outIntersection) const
Get an intersection with a 3d line, limited between two 3d points.
void setPlane(const vector3d< T > &point, const vector3d< T > &nvector)
plane3d(const vector3d< T > &point1, const vector3d< T > &point2, const vector3d< T > &point3)
plane3d(const vector3d< T > &MPoint, const vector3d< T > &Normal)
vector3d< T > Normal
Normal vector of the plane.
bool getIntersectionWithPlanes(const plane3d< T > &o1, const plane3d< T > &o2, vector3d< T > &outPoint) const
Get the intersection point with two other planes if there is one.
bool getIntersectionWithPlane(const plane3d< T > &other, vector3d< T > &outLinePoint, vector3d< T > &outLineVect) const
Intersects this plane with another.
T getDistanceTo(const vector3d< T > &point) const
Get the distance to a point.
bool isFrontFacing(const vector3d< T > &lookDirection) const
Test if the triangle would be front or backfacing from any point.
bool operator==(const plane3d< T > &other) const
bool operator!=(const plane3d< T > &other) const
bool getIntersectionWithLine(const vector3d< T > &linePoint, const vector3d< T > &lineVect, vector3d< T > &outIntersection) const
Get an intersection with a 3d line.
plane3d(T px, T py, T pz, T nx, T ny, T nz)
#define F32_LOWER_EQUAL_0(n)
const f64 ROUNDING_ERROR_f64
EIntersectionRelation3D
Enumeration for intersection relations of 3d objects.
const f32 ROUNDING_ERROR_f32
bool equals(const f64 a, const f64 b, const f64 tolerance=ROUNDING_ERROR_f64)
returns if a equals b, taking possible rounding errors into account
plane3d< f32 > plane3df
Typedef for a f32 3d plane.
plane3d< s32 > plane3di
Typedef for an integer 3d plane.
Everything in the Irrlicht Engine can be found in this namespace.
float f32
32 bit floating point variable.
double f64
64 bit floating point variable.