16 #include "../point/point.h" float radius
Definition: circle.h:25
void circle_set_radius(Circle *c, float center)
Set the circle radius.
void circle_set(Circle *c, Point *center, float radius)
Set the values of center and radius of structure.
int circle_point_inside(Circle *c, Point *point)
Check if the pointer /p point is inside of the circle.
void circle_set_center(Circle *c, Point *center)
Set the circle center.
Point * circle_get_center(Circle *c)
Get the center of circle c.
void circle_get(Circle *c, Point *center, float *radius)
Get the its internal attributes through the pointers passed.
void circle_free(Circle *c)
free memory allocated by the circle c
Circle * circle_create(Point *center, float radius)
allocate a new circle on memory based on its parameters
define a Circle structure Has the fields hidden by struct circle as (Point* center) and (float radius...
Definition: circle.h:23
float circle_get_radius(Circle *c)
Get the radius of circle c.
Point * center
Definition: circle.h:24
struct Point as 2D space pointer.
Definition: point.h:19