Plane

Infinite plane

Members

Functions

distance
float distance(Vector3f p)

Get the distance from the center of the plane to the given point. This is useful for determining which side of the plane the point is on.

dot
float dot(Vector3f p)
Undocumented in source. Be warned that the author may not have intended to support it.
fromPointAndNormal
void fromPointAndNormal(Vector3f p, Vector3f n)
Undocumented in source. Be warned that the author may not have intended to support it.
fromPoints
void fromPoints(Vector3f p0, Vector3f p1, Vector3f p2)
Undocumented in source. Be warned that the author may not have intended to support it.
intersectsLine
bool intersectsLine(Vector3f p0, Vector3f p1, float t)

Calculate the intersection between this plane and a line If the plane and the line are parallel, false is returned

intersectsLine
bool intersectsLine(Vector3f p0, Vector3f p1, Vector3f ip)
Undocumented in source. Be warned that the author may not have intended to support it.
intersectsLineSegment
bool intersectsLineSegment(Vector3f p0, Vector3f p1, Vector3f ip)
Undocumented in source. Be warned that the author may not have intended to support it.
isOnPlane
bool isOnPlane(Vector3f p, float threshold)
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.
opIndex
float opIndex(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
float opIndexAssign(float value, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
project
Vector3f project(Vector3f p)
Undocumented in source. Be warned that the author may not have intended to support it.
reflect
Vector3f reflect(Vector3f vec)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

position
Vector3f position [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

opCall
Plane opCall()

Return a Plane with all values at zero

opCall
Plane opCall(Vector3f n, float d)

Return a Plane with the Vec3f component of n and distance of d

opCall
Plane opCall(float x, float y, float z, float d)

Return a Plane with a Vec3f component of x, y, z and distance of d

Unions

__anonymous
union __anonymous
Undocumented in source.

Meta