Murl Engine Lua Addon API  Version 1.0 beta
Murl.Math.Plane

A plane class describing the equation for a plane a*x + b*y + c*z + d = 0.


Table members

Functions


Murl.Math.Plane.new()

The default constructor.

Murl.Math.Plane new()

Returns
Murl.Math.Plane


Methods


Set(a, b, c, d)

Set all variables of the equation for a plane a*x + b*y + c*z + d = 0.

Set(Number a, Number b, Number c, Number d)

Parameters
aThe a variable.
bThe b variable.
cThe c variable.
dThe d variable.

NormalizeSelf()

Normalize the plane.

NormalizeSelf()


GetPointDistance(point)

Get the distance from a point to the plane.

Number GetPointDistance(Murl.Math.Vector point)

Parameters
pointThe point to measure the distance from.
Returns
Number The distance between the point and the plane.

ToString()

Get the string representation of the object.

String ToString()

Returns
String The string representation of the object.


Metamethods


The tostring operator

Converts the object content to a string in a reasonable format.

Returns
ToString()


Instance Members


mA

The a variable.

Returns
Number

mB

The b variable.

Returns
Number

mC

The c variable.

Returns
Number

mD

The d variable.

Returns
Number