normalize method

Q normalize()

Implementation

Q normalize() {
  double length = this.length;
  if (length == 0.0) length = 1.0;
  final ilength = 1.0/length;
  return _q(
    x*ilength,
    y*ilength,
    z*ilength,
    w*ilength,
  );
}