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 is a projection onto the plane. |
| planeNormal | Vector3d | normal to the target plane |
Returns - undefined | Matrix3d
Defined in
- geometry3d/Matrix3d.ts Line 1670
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.