Rotation Matrix for Coordinate Transformation