liveBook · Manning

Circle

As explained in Robotics for Programmers

A circle is a planar shape consisting of points at a constant distance from a center.

A circle is a planar shape whose points remain a constant distance from a center. Its shape requires one parameter: a radius or diameter. section 6.1.5

Use the circle as a compact geometric primitive:

  • Separate shape from pose: the radius describes the circle, while position and orientation are handled separately. section 6.1.5
  • Represent a circle centered at the origin with x² + y² = r². section 6.1.5
  • Render its outline by evaluating x = r cos(t) and y = r sin(t) as t ranges from 0 to 2π. section 6.1.5
  • Use parametrized geometry to test whether points lie inside the shape or whether shapes intersect. section 6.1.5

Shape signature

A programmer-friendly abstraction is def circle(radius): the single argument fully determines the circle’s shape, unlike a rectangle’s width and length. section 6.1.5

\[\begin{align*} x &= r \cos(t) \\ y &= r \sin(t) \end{align*}\]

The parametric equations provide a direct way to generate circle points for drawing or geometric processing. section 6.1.5

How Robotics for Programmers covers it

How deep it goes
Defines the radius, origin-centered equation, parametric rendering, and geometric queries without developing broader shape-modeling methods.
Examples
Uses a radius-based shape signature, an origin-centered equation, and parametric points generated across a full revolution.
What you can do after
Apply parametrized circle formulas to render outlines and support point-in-shape or intersection queries.
How it connects
Connects circles with geometric primitives, parametric formulas, point-in-shape queries, and shape intersection.

Also explained in

Compare how 3 books explain circle →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Robotics for Programmers. The section links point to the parts of the book it draws on.