#include <MPlane.h>
This class describes a mathematical plane.
Public Member Functions | |
| MPlane () | |
| MPlane (const MPlane &) | |
| MVector | normal () const |
| double | distance () const |
| void | setPlane (double a, double b, double c, double d) |
| void | setPlane (const MVector &n, double d) |
| double | distance (const MVector &) const |
| double | directedDistance (const MVector &) const |
| MPlane::MPlane | ( | ) |
Class default constructor. Create a new default plane.
| MPlane::MPlane | ( | const MPlane & | src | ) |
Class copy constructor. Create a new vector and initialize it to the same values as the given plane.
| [in] | src | the plane to copy |
| MVector MPlane::normal | ( | ) | const |
Returns the normal of the plane.
| double MPlane::distance | ( | ) | const |
Returns the distance of the plane along the normal.
| void MPlane::setPlane | ( | double | a, | |
| double | b, | |||
| double | c, | |||
| double | d | |||
| ) |
Directly set the equation of the plane in the form: ax + by +cz + d = 0.
| [in] | a | The plane equation's x coefficent |
| [in] | b | The plane equation's y coefficent |
| [in] | c | The plane equation's z coefficent |
| [in] | d | The plane equation's constant distance term |
| void MPlane::setPlane | ( | const MVector & | n, | |
| double | d | |||
| ) |
Set the equation of the plane from a normal and offset.
| [in] | n | The plane's normal |
| [in] | d | The offset of the plane along the normal |
| double MPlane::distance | ( | const MVector & | point | ) | const |
Returns the unsigned distance from the plane to the specified point.
| [in] | point | The point from which to calculate the distance |
| double MPlane::directedDistance | ( | const MVector & | point | ) | const |
Returns the signed distance from the plane to the specified point.
| [in] | point | The point from which to calculate the distance |
| Autodesk® Maya® 2010 © 1997-2009 Autodesk, Inc. All rights reserved. |
Generated with
|