PolygonShape

Namespace: Murder.Core.Geometry
Assembly: Murder.dll

public sealed struct PolygonShape : IShape

Implements: IShape

⭐ Constructors

public PolygonShape()
public PolygonShape(Polygon polygon)

Parameters
polygon Polygon

⭐ Properties

Polygon

public readonly Polygon Polygon;

Returns
Polygon

Rect

public Rectangle Rect { get; }

Returns
Rectangle

⭐ Methods

GetCenter()

public Point GetCenter()

Returns
Point

GetPolygon()

public virtual PolygonShape GetPolygon()

Returns
PolygonShape

GetBoundingBox()

public virtual Rectangle GetBoundingBox()

Returns
Rectangle

Cache()

public void Cache()