Skip to content
reduz edited this page Feb 23, 2014 · 11 revisions

Plane

Brief Description

Plane in hessian form.

Member Functions

Member Variables

Description

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.

Member Function Description

Returns true if "p" is inside the plane (by a very minimum treshold).

Returns true if this plane intersects with planes "a" and "b". The resulting intersectin is placed in "r".

Returns true if ray consiting of position "p" and direction normal "d" intersects this plane. If true, the result is placed in "r".

Returns true if segment from position "sa" to position "sb" intersects this plane. If true, the result is placed in "r".

Returns true if "p" is located above the plane.

Returns a copy of the plane, normalized.

Returns the orthogonal projection of point "p" into a point in the plane.

Clone this wiki locally