Class PlaneData
PlaneData stores information about a contact between 2 objects
Defined in: planedata.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
PlaneData(pos, the)
|
| Field Attributes | Field Name and Description |
|---|---|
|
the dot product of position and normal
|
|
|
the normal direction of the plane expressed as a 3D vector
|
|
|
the position of the plane expressed as a 3D vector
|
| Method Attributes | Method Name and Description |
|---|---|
Class Detail
PlaneData(pos, the)
- Parameters:
- {array} pos
- the position of the plane expressed as a 3D vector
- {nor} the
- normal direction of the plane expressed as a 3D vector
- Requires:
- Vector3DUtil
Field Detail
{number}
distance
the dot product of position and normal
{array}
normal
the normal direction of the plane expressed as a 3D vector
{array}
position
the position of the plane expressed as a 3D vector
Method Detail
{number}
pointPlaneDistance(pt)
- Parameters:
- {array} pt
- a 3D vector