Plane(const Vector3 &normal, MLdouble distance)
const Vector3 & getNormal() const
Returns the plane normal.
bool setNormal(const Vector3 &n)
MLdouble getDistance(const Vector3 &point) const
Returns the distance of point from plane.
bool intersect(const Line &l, Vector3 &intersection) const
Plane()
Constructor. Normal defaults to (0, 0, 1) and distance to 0.
bool isInHalfSpace(const Vector3 &point) const
Plane(const Vector3 &normal, const Vector3 &point)
Vector3 getClosestPoint(const Vector3 &point) const
Projects a point onto this plane.
Plane(const Vector3 &p0, const Vector3 &p1, const Vector3 &p2)
void setDistance(double d)
Sets the distance from origin to d.
MLSign edgeIntersect(const Vector3 &v1, const Vector3 &v2, Vector3 &intersectPos) const
MLdouble getDistanceFromOrigin() const
Returns the minimum distance of plane from origin.
#define ML_LINEAR_ALGEBRA_EXPORT
Defines all system specific settings for all linear algebra classes.
MLSign
Definition of possible signs as enumerator.
Tvec3< MLdouble > Vector3
A vector with three components of type double.