public Vector2D[] GetRotatedRectangleCorners(Vector2D center, float rotation) { return(new[] { TopLeft.RotateAround(center, rotation), BottomLeft.RotateAround(center, rotation), BottomRight.RotateAround(center, rotation), TopRight.RotateAround(center, rotation) }); }