Plane

3D plane.

Constructors

this
this(vec4!T abcd)

Create from four coordinates.

this
this(vec3!T origin, vec3!T normal)

Create from a point and a normal.

this
this(vec3!T A, vec3!T B, vec3!T C)

Create from 3 non-aligned points.

Members

Functions

distanceTo
T distanceTo(vec3!T point)
isBack
bool isBack(vec3!T point)
isFront
bool isFront(vec3!T point)
isOn
bool isOn(vec3!T point, T epsilon)
opAssign
Plane opAssign(Plane other)

Assign a plane with another plane.

signedDistanceTo
T signedDistanceTo(vec3!T point)

Variables

d
T d;
Undocumented in source.
n
vec3!T n;

Normal (always stored normalized).

See Also

Flipcode article by Nate Miller .

Meta