lengthSqr property

double get lengthSqr

Squared length of this quaternion.

Prefer over length when only relative comparison is needed.

Implementation

double get lengthSqr => x * x + y * y + z * z + w * w;