Files
MonoGame.Extended/Source/MonoGame.Extended.Tiled/TiledMapEllipseObject.cs
T
Lucas Girouard-StranksandDylan Wilson b22a062147 Fix Tiled Problems (#332)
* Add Tiled Content Pipeline library to NuGet

* Update Tiled NuGet package elements.

* Remove dependency on Graphics

* Update csproj for removal of Graphics dependency

* Fix build errors

* Fix problems
2017-01-20 21:08:14 +10:00

25 lines
582 B
C#

#region
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
#endregion
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);
}
}
}