| Constructor and Description |
|---|
CircleShape(float radius)
Initialise a new circle centred on the shape's origin.
|
CircleShape(float radius,
float x,
float y)
Initialise a new circle centred at the given offset from the shape's origin.
|
CircleShape(float radius,
Vec2 centre)
Initialise a new circle centred at the given offset from the shape's origin.
|
public CircleShape(float radius,
float x,
float y)
radius - the circle's radius (in metres)x - the x-displacement of the centre of the circle relative to the origin of the shape (in metres)y - the y-displacement of the centre of the circle relative to the origin of the shape (in metres)public CircleShape(float radius,
Vec2 centre)
radius - the circle's radius (in metres)centre - the centre of the circle relative to the origin of the shapepublic CircleShape(float radius)
radius - the circle's radius (in metres)