createRigidFromOriginAndVector MethodStatic
Create a Transform with given origin and a rigid matrix constructed from one column vector.
createRigidFromOriginAndVector(origin: XYZ, vector: Vector3d, axisOrder: AxisOrderAxisOrder.ZXY, result?: Transform): undefined | Transform
@returns localToWorld transform for a local coordinate system with given origin and axis, or undefined
if the rigid matrix could not be created.
@see createRigidHeadsUp
Parameter | Type | Description |
---|---|---|
origin | XYZ | origin of the local coordinate system. Default is the global origin (zero). |
vector | Vector3d | direction of the axis of the local coordinate system indicated by the first letter of axisOrder . |
axisOrder | AxisOrder | order of axis construction in Matrix3d.createRigidHeadsUp(vector, axisOrder) . Default valueis AxisOrder.ZXY , which means the z-column of the returned Transform is in the direction of vector . |
result | Transform | optional pre-allocated result to populate and return. |
Returns - undefined | Transform
localToWorld transform for a local coordinate system with given origin and axis, or undefined
if the rigid matrix could not be created.
Defined in
- geometry3d/Transform.ts Line 332
Last Updated: 27 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.