normalizeDirectionInPlace Method
Normalize the direction vector in place.
normalizeDirectionInPlace(defaultX: number = 1, defaultY: number = 0): boolean
@returns whether normalization succeeded (i.e., direction is nonzero)
Returns - boolean
whether normalization succeeded (i.e., direction is nonzero)
Defined in
- geometry3d/Ray2d.ts Line 117
Last Updated: 30 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.