Matrix3 getRotation()

Returns the rotation matrix from this homogeneous transformation matrix.

Source

Matrix3 getRotation() {
  Matrix3 r = new Matrix3.zero();
  copyRotation(r);
  return r;
}