PlaneCreateByOriginAndBasis Method |
Creates a Plane object defined by the two orthogonal unit vectors and passing through the origin point supplied as arguments.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static Plane CreateByOriginAndBasis(
XYZ origin,
XYZ basisX,
XYZ basisY
)
Public Shared Function CreateByOriginAndBasis (
origin As XYZ,
basisX As XYZ,
basisY As XYZ
) As Plane
public:
static Plane^ CreateByOriginAndBasis(
XYZ^ origin,
XYZ^ basisX,
XYZ^ basisY
)
static member CreateByOriginAndBasis :
origin : XYZ *
basisX : XYZ *
basisY : XYZ -> Plane
Parameters
- origin XYZ
-
Plane origin. Expected to lie within the Revit design limits IsWithinLengthLimits(XYZ).
- 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
Plane
Exceptions
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).
See Also