OpenMaya.MPlane Class Reference
This class describes a mathematical plane.
OpenMaya.MPlane.__init__ |
( |
| ) |
|
x.__init__(...) initializes x; see help(type(x)) for signature
OpenMaya.MPlane.distance |
( |
| ) |
|
distance() -> float
Returns the distance of the plane along the normal.
OpenMaya.MPlane.distanceToPoint |
( |
| ) |
|
distanceToPoint(point, signed=False) -> float
Returns the distance from the plane to the specified point.
* point (MVector) - The point from which to calculate the distance
* signed (bool) - Whether to return a signed or unsigned distance
OpenMaya.MPlane.normal |
( |
| ) |
|
normal() -> MVector
Returns the normal of the plane.
OpenMaya.MPlane.setPlane |
( |
| ) |
|
setPlane(a, b, c, d) -> self
setPlane(n, d) -> self
Set the equation of the plane.
From values : ax + by + cz + d = 0
* a (float) - The plane equation's x coefficent
* b (float) - The plane equation's y coefficent
* c (float) - The plane equation's z coefficent
* d (float) - The plane equation's constant distance term
From a normal and offset
* n (MVector) - The plane's normal
* d (float) - The offset of the plane along the normal