Circle

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

public sealed struct Circle

⭐ Constructors

public Circle(float radius)

Parameters
radius float

public Circle(float x, float y, float radius)

Parameters
x float
y float
radius float

⭐ Properties

Radius

public readonly float Radius;

Returns
float

X

public readonly float X;

Returns
float

Y

public readonly float Y;

Returns
float

⭐ Methods

Contains(Point)

public bool Contains(Point point)

Parameters
point Point

Returns
bool

Contains(Vector2)

public bool Contains(Vector2 vector2)

Parameters
vector2 Vector2

Returns
bool

AddPosition(PositionComponent)

public Circle AddPosition(PositionComponent position)

Parameters
position PositionComponent

Returns
Circle

AddPosition(Point)

public Circle AddPosition(Point position)

Parameters
position Point

Returns
Circle

AddPosition(Vector2)

public Circle AddPosition(Vector2 position)

Parameters
position Vector2

Returns
Circle

EstipulateSidesFromRadius(float)

public int EstipulateSidesFromRadius(float radius)

Parameters
radius float

Returns
int