public class GeometryUtil extends Object
Constructor and Description |
---|
GeometryUtil() |
Modifier and Type | Method and Description |
---|---|
static Map.Entry<Integer,Integer> |
processClockwiseRotation(int x,
int y,
int length,
int height,
int rotation)
Calculates a clockwise rotation across a two dimensional grid
|
static Map.Entry<Integer,Integer> |
processCounterClockwiseRotation(int x,
int y,
int length,
int height,
int rotation)
Calculates a counter clockwise rotation across a two dimensional grid.
|
@NotNull @Contract(pure=true) public static Map.Entry<Integer,Integer> processClockwiseRotation(int x, int y, int length, int height, int rotation)
x
- the standard x coordinatey
- the standard y coordinatelength
- the length of the gridheight
- the height of the gridrotation
- the rotation in degrees@NotNull @Contract(pure=true) public static Map.Entry<Integer,Integer> processCounterClockwiseRotation(int x, int y, int length, int height, int rotation)
processClockwiseRotation(int, int, int, int, int)
with 360 - rotation as the rotation.x
- the standard x coordinatey
- the standard y coordinatelength
- the length of the gridheight
- the height of the gridrotation
- the rotation in degreesCopyright © 2020. All rights reserved.