Circle

A circle with a center and a radius

Constructors

this
this(float x, float y, float radius)
Undocumented in source.

Members

Functions

contains
bool contains(Vector v)

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

overlaps
bool overlaps(Rectangle r)

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

overlaps
bool overlaps(Circle c)

Checks to see if the circles have any overlapping area

print
void print()
Undocumented in source. Be warned that the author may not have intended to support it.
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

Properties

x
float x [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
x
float x [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
y
float y [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
y
float y [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

center
Vector center;
Undocumented in source.
radius
float radius;
Undocumented in source.

Meta