Files
MonoGame.Extended/Source/MonoGame.Extended.Tiled/Tiled/TiledMapEllipseObject.cs
T
Lucas Girouard-StranksandDylan Wilson 3a164d5385 Tiled Fix (#349)
* Tiled fix.

* Remove bat file.
2017-03-05 09:18:11 +10:00

21 lines
561 B
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
namespace MonoGame.Extended.Tiled
{
public sealed class TiledMapEllipseObject : TiledMapObject
{
public Vector2 Center { get; }
public float RadiusX { get; }
public float RadiusY { get; }
internal TiledMapEllipseObject(ContentReader input)
: base(input)
{
RadiusX = Size.Width / 2.0f;
RadiusY = Size.Height / 2.0f;
Center = new Vector2(Position.X + RadiusX, Position.Y);
}
}
}