Circle

A circle with a center and a radius

Members

Functions

contains
bool contains(in Vector v)

Checks if a vector falls within the area bounded by a circle

overlaps
bool overlaps(in Rectangle r)

Checks to see if the circle and the rectangle share any area

overlaps
bool overlaps(in Circle c)

Checks to see if the circles have any overlapping area

set
void set(float newX, float newY, float newRadius)

Sets the dimensions of a circle

translate
Circle translate(Vector vec)

floatranslate the circle by a given vector

Meta