trySetDirectionMagnitudeInPlace Method

try to scale the direction vector to a given magnitude.

trySetDirectionMagnitudeInPlace(magnitude: number = 1): boolean

Parameter Type Description
magnitude number  

Returns - boolean

Returns false if ray direction is a zero vector.

Defined in

Last Updated: 13 June, 2024