trySetDirectionMagnitudeInPlace Method
try to scale the direction vector to a given magnitude.
trySetDirectionMagnitudeInPlace(magnitude: number = 1.0): boolean
Parameter | Type | Description |
---|---|---|
magnitude | number |
Returns - boolean
Returns false if ray direction is a zero vector.
Defined in
- geometry3d/Ray3d.ts Line 205
Last Updated: 20 June, 2023