Example #1
0
 public static Vector2 AsMonoVector(this Core.Utility.Vector2 vector) => new Vector2((float)vector.X, (float)vector.Y);
Example #2
0
 private void DrawCircle(SpriteBatch spriteBatch, Core.Utility.Vector2 position, double radius, Color color)
 {
     spriteBatch.Draw(TextureManager.Get(Texture.Circle), new Rectangle((int)(position.X - radius), (int)(position.Y - radius), (int)(radius * 2), (int)(radius * 2)), color);
 }