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 Macts on a vectoruby rotating and scaling it to lie in the plane. Specifically,Mu = u + swis perpendicular tonfor some scalars, wherewis the sweep direction, andnis the plane normal.
- Symbolically, M = I - w⊗n / w.n, whereIis 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: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.