API Reference > geometry-core > CartesianGeometry > Ray3d > trySetDirectionMagnitudeInPlace 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 core/geometry/src/geometry3d/Ray3d.ts Line 204 Last Updated: 13 June, 2024