copy method

Quaternion copy(
  1. Quaternion quat
)

Copies value of source to this quaternion. @return this

Implementation

Quaternion copy(Quaternion quat){
  x = quat.x;
  y = quat.y;
  z = quat.z;
  w = quat.w;
  return this;
}