March 2017
Intermediate to advanced
480 pages
11h 3m
English
A circle is defined by a point in space and a Radius. The circle is an extremely simple shape as shown in the following diagram:

Intersection algorithms for the circle are as simple as its definition. For this reason, a circle is often the first choice to approximate the bounding volume of objects. Arguably, the circle is the most commonly used 2D primitive.
Follow these steps to implement a two-dimensional circle:
Circle structure in Geometry2D.h by creating the variables that make up a circle:typedef struct Circle {
Point2D position;
float radius;Read now
Unlock full access