Plane.CreateByOriginAndBasis
Method
Description:
Creates a Plane object defined by the two orthogonal unit vectors and passing through the origin point supplied as arguments.
Creates a Plane object defined by the two orthogonal unit vectors and passing through the origin point supplied as arguments.
Remarks:
The parametric equation of the plane is S(u, v) = origin + u*basisX + v*basisY. The plane's normal is defined as basisX.Cross(basisY).
The parametric equation of the plane is S(u, v) = origin + u*basisX + v*basisY. The plane's normal is defined as basisX.Cross(basisY).
Parameters
Parameter | Type | Description |
---|---|---|
origin | XYZ | Plane origin. Expected to lie within the Revit design limits <a href="ac2171af-4250-8a30-faa7-4d7030d29a03.htm">IsWithinLengthLimits(XYZ)</a>. |
basisX | XYZ | First of the two unit vectors that define the plane. Must be orthogonal to the second one. |
basisY | XYZ | Second of the two unit vectors that define the plane. Must be orthogonal to the first one. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentException | The input point lies outside of Revit design limits. |
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | basisX is not length 1.0. -or- basisY is not length 1.0. |
ArgumentsInconsistentException | The vectors basisX and basisY are not perpendicular. |