示例#1
0
 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)
     });
 }