vector3.length

The Euclidean length of a vector.

Value helperSince 0.3.0

Usage

TypeScript
Vector3.length(v: Vector3): number

Parameters

  • vVector3

    The vector to measure. Required. In model.

Returns

A non-negative length in model units; NaN when a coordinate is NaN or two infinities cancel.

Example

TypeScript
Vector3.length(Vector3.of(2, 3, 6)) // → 7

See also