Plane

D-Dimensional Infinite Cartesian (Hyper)-Plane with Element (Component) Type E.

struct Plane (
E
uint D
) if (
D >= 2 &&
isFloatingPoint!E
) {
enum dimension;
E distance;
}

Constructors

this
this(E a, E b, E distance)

Constructs the plane, from either four scalars of type E or from a 3-dimensional vector (= normal) and a scalar.

Members

Aliases

NormalType
alias NormalType = Vector!(E, D, true)

Normal type of plane.

Functions

normalize
void normalize()

Normalizes the plane inplace.

See Also

Meta