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

Last Updated: 12 June, 2024