Plane

Plane represents a normalized plane equation. Basically, “normal” is the normal of the plane (a,b,c normalized), and “d” is the distance from the origin to the plane (in the direction of “normal”). “Over” or “Above” the plane is considered the side of the plane towards where the normal is pointing.

Constructors

this
this(Vector3 p_normal, real_t p_d)
Undocumented in source.
this
this(Vector3 p_point, Vector3 p_normal)
Undocumented in source.
this
this(Vector3 p_point1, Vector3 p_point2, Vector3 p_point3, ClockDirection p_dir)
Undocumented in source.

Members

Functions

center
Vector3 center()
Undocumented in source. Be warned that the author may not have intended to support it.
distanceTo
real_t distanceTo(Vector3 p_point)
Undocumented in source. Be warned that the author may not have intended to support it.
getAnyPerpendicularNormal
Vector3 getAnyPerpendicularNormal()
Undocumented in source. Be warned that the author may not have intended to support it.
getAnyPoint
Vector3 getAnyPoint()
Undocumented in source. Be warned that the author may not have intended to support it.
hasPoint
bool hasPoint(Vector3 p_point, real_t _epsilon)
Undocumented in source. Be warned that the author may not have intended to support it.
intersect3
bool intersect3(Plane p_plane1, Plane p_plane2, Vector3* r_result)
Undocumented in source. Be warned that the author may not have intended to support it.
intersectsRay
bool intersectsRay(Vector3 p_from, Vector3 p_dir, Vector3* p_intersection)
Undocumented in source. Be warned that the author may not have intended to support it.
intersectsSegment
bool intersectsSegment(Vector3 p_begin, Vector3 p_end, Vector3* p_intersection)
Undocumented in source. Be warned that the author may not have intended to support it.
isAlmostLike
bool isAlmostLike(Plane p_plane)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointOver
bool isPointOver(Vector3 p_point)
Undocumented in source. Be warned that the author may not have intended to support it.
normalize
void normalize()
Undocumented in source. Be warned that the author may not have intended to support it.
normalized
Plane normalized()
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
Plane opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
project
Vector3 project(Vector3 p_point)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

d
real_t d;
Undocumented in source.
normal
Vector3 normal;
Undocumented in source.

Meta