Class Plane
Interface to a plane.
|
|
Class Hierarchy for Plane
|
constructor Plane():
constructor Plane(iAnchor, iNormal):
-
iAnchor - Point in the plane. (Vector3d)
-
iNormal - Normal of the plane. (Vector3d)
constructor Plane(iNormal, iConstant):
-
iNormal - Normal of the plane. (Vector3d)
-
iConstant - Constant d in the equation a*x+b*y+c*z+d=0. (Vector3d)
constructor Plane(iPoint1, iPoint2, iPoint3):
-
iPoint1 - Point to construct plane through. (Vector3d)
-
iPoint2 - Point to construct plane through. (Vector3d)
-
iPoint3 - Point to construct plane through. (Vector3d)
|
Expression
|
constant()
Returns the constant in the equation of the plane (d in
a*x+b*y+c*z+d=0). |
|
|
|
float
|
distanceTo(iPoint)
Returns the distance from the plane to a point. |
|
|
|
Vector3d
|
normal()
Returns the normal of the plane. |
|
|
|
Vector3d
|
origin()
Returns a point in the plane. |
|
|
|
Returns the distance from the plane to a point.
- Parameters:
iPoint (Vector3d) - Point to query for distance.
- Returns: float
|