API Reference > geometry-core > CartesianGeometry > Vector3d > scaleToLength scaleToLength Method Return a (optionally new or reused) vector in the direction of this but with specified length. scaleToLength(length: number, result?: Vector3d): Vector3d | undefined Parameter Type Description length number desired length of vector result Vector3d optional preallocated result Returns - Vector3d | undefined Defined in core/geometry/src/geometry3d/Point3dVector3d.ts Line 929 Last Updated: 13 June, 2024