setRotationFromQuaternion method

void setRotationFromQuaternion(
  1. Quaternion q
)

q - normalized Quaternion.

Copy the given quaternion into quaternion.

Implementation

void setRotationFromQuaternion(Quaternion q) {
  // assumes q is normalized
  quaternion.setFrom(q);
}