code: public static Matrix3d getRotationMatrix(Matrix4d transform) {
  
  		Matrix3d rot = new Matrix3d();
  		transform.setRotationScale(rot);
  		return rot;
  	}
docs: Convert a transformation matrix into a rotation matrix.
  
  @param transform
  Matrix4d
  @return rotation matrix