API Reference > geometry-core > CartesianGeometry > Ray3d > trySetDirectionMagnitudeInPlace 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: 12 June, 2024