createFlattenAlongVectorToPlane MethodStatic
Create a matrix which sweeps a vector along sweepVector
until it hits the plane through the origin with the
given normal.
- Geometrically, the returned matrix
M
acts on a vectoru
by rotating and scaling it to lie in the plane. Specifically,Mu = u + sw
is perpendicular ton
for some scalars
, wherew
is the sweep direction, andn
is the plane normal. - Symbolically,
M = I - w⊗n / w.n
, whereI
is the identity, and ⊗ is the vector outer product.
createFlattenAlongVectorToPlane(sweepVector: Vector3d, planeNormal: Vector3d): undefined | Matrix3d
Parameter | Type | Description |
---|---|---|
sweepVector | Vector3d | sweep direction. If same as planeNormal , the resulting matrix flattens to the plane. |
planeNormal | Vector3d | normal to the target plane |
Returns - undefined | Matrix3d
Defined in
- geometry3d/Matrix3d.ts Line 1663
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.