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
- Drives rotations, circular layouts, canvas arcs, directional motion, and pointer-based UI controls.
- How deep it goes
- Defines degrees and radians, then works through atan2, trigonometric positioning, proportional slices, and interaction ranges.
- Examples
- Uses CSS rotation, radial menus, hover tilt, rotary knobs, pie charts, and interactive donut charts.
- What you can do after
- Build it from scratch by converting pointer vectors or data proportions into rotations, positions, arcs, and selected slices.
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.
Related concepts
- cosine similaritymeasured by · Cosine similarity measures the directional alignment of two nonzero vectors as the cosine of the angle between them, equivalently their dot product divided by the product of their magnitudes.
- 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.
- 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.
- 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.
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.

