rotate
Rotates the current direction based on the given DirRotate direction.
Return
The new DirXY direction after rotation.
Parameters
dir Rotate
The direction to rotate (DirRotate.CLOCKWISE or DirRotate.COUNTERCLOCKWISE).
Rotates the current direction based on the given DirRotate direction.
The new DirXY direction after rotation.
The direction to rotate (DirRotate.CLOCKWISE or DirRotate.COUNTERCLOCKWISE).