Angle
An angle is a geometric measure of rotational separation between two rays, directions, or vectors sharing a common origin.
Math for Web Design
An angle is the geometric measure of the separation between two intersecting rays or sides.
- How it is used
- Turns rotation, pointer direction, and data proportions into circular layouts, controls, and charts.
- How deep it goes
- Works through angle-to-position, pointer-to-angle, and data-to-slice calculations, including donut hit detection.
- Examples
- Uses a radial menu, pointer-responsive hover effect, rotary control, pie chart, and interactive donut chart.
- What you can do after
- Build it from scratch: calculate circular positions and slices, rotate a dial, and identify a hovered donut slice.
D3.js in Action, Third Edition
An angle is the measure of rotation from a reference direction to a point or geometric ray.
- How it is used
- Positions arcs and points around an SVG chart origin using a polar coordinate system.
- How deep it goes
- Explains polar positioning, percentage-to-angle calculations, degree-to-radian conversion, and D3 arc accessors.
- Examples
- Uses a precipitation chart that maps 35 percent of 2021 days to a 126-degree arc.
- What you can do after
- Apply angles via D3’s arc generator to construct SVG arcs from percentages and radii.
What to know first
- centroidA point representing the center of a set of points or a region, commonly calculated as the coordinate-wise mean or, for weighted points, the weighted mean.
Related concepts
- angle-based outlier detectionused by · Angle-based outlier detection is an outlier-detection algorithm that evaluates observations using the variation of angles formed with pairs of other observations, with distance playing a secondary role.
- degreesmeasures · A degree is a unit of angular measurement equal to one three-hundred-sixtieth of a full revolution.
- Math.atan2produced by · Math.atan2 is a two-argument inverse tangent function that returns the angle, typically in radians, of a point from its signed coordinates while distinguishing quadrants.
- cosine similaritymeasured by · Cosine similarity measures the directional alignment of two nonzero vectors as the cosine of the angle between them, equal to their dot product divided by the product of their magnitudes.
- polar coordinatepart of · A polar coordinate specifies a point in two-dimensional space by its distance from an origin and its angle relative to a reference direction.
- radianmeasures · A radian is an angular unit defined by the angle at a circle’s center subtended by an arc whose length equals the circle’s radius.
Questions about angle
What is angle?
An angle is a geometric measure of rotational separation between two rays, directions, or vectors sharing a common origin.
Which Manning books explain angle?
Math for Web Design and D3.js in Action, Third Edition.
What should I know before learning angle?
Manning books that teach angle usually introduce centroid first.
What is angle part of?
Angle is part of polar coordinate. A polar coordinate specifies a point in two-dimensional space by its distance from an origin and its angle relative to a reference direction.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

