class Geometry {

    public static Vector2 coordinatesAfterRotation(Vector2 coordinates, Double rotation) {
        return new Vector2(
                coordinates.x * Math.cos(rotation) - coordinates.y * Math.sin(rotation),
                coordinates.x * Math.sin(rotation) - coordinates.y * Math.cos(rotation));
    }

}