LineShape

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

public sealed struct LineShape : IShape

Implements: IShape

⭐ Constructors

public LineShape(Point start, Point end)

Parameters
start Point
end Point

⭐ Properties

End

public readonly Point End;

Returns
Point

Line

public Line2 Line { get; }

Returns
Line2

Start

public readonly Point Start;

Returns
Point

⭐ Methods

LineAtPosition(Point)

public Line2 LineAtPosition(Point position)

Parameters
position Point

Returns
Line2

GetPolygon()

public virtual PolygonShape GetPolygon()

Returns
PolygonShape

GetBoundingBox()

public virtual Rectangle GetBoundingBox()

Returns
Rectangle