squaredLength property

double get squaredLength

Computes the squared length of this 3D vector. Calling this method is faster than calling {@link Vector3#length}, since it avoids computing a square root.

Implementation

double get squaredLength => dot( this );