trySetDirectionMagnitudeInPlace Method

Try to scale the direction vector to a given magnitude.

  • Returns false if the ray direction is a zero vector.

trySetDirectionMagnitudeInPlace(magnitude: number1.0): boolean

Parameter Type Description
magnitude number  

Returns - boolean

Defined in

Last Updated: 17 December, 2024