conjugate method

Quaternion conjugate([
  1. Quaternion? target
])

Get the quaternion conjugate

Implementation

Quaternion conjugate([Quaternion? target]){
  target ??= Quaternion();
  target.x = -x;
  target.y = -y;
  target.z = -z;
  target.w = w;

  return target;
}