normalized property

UArQuaternion get normalized

Implementation

UArQuaternion get normalized {
  final double l = sqrt(x * x + y * y + z * z + w * w);
  return l < 1e-9 ? UArQuaternion.identity : UArQuaternion(x / l, y / l, z / l, w / l);
}