Trigonometry
Trigonometry is the branch of mathematics studying relationships among angles, lengths, geometric ratios, coordinates, and periodic functions.
Math for Web Design
Trigonometry is the branch of mathematics concerned with relationships among the sides and angles of triangles.
- How it is used
- Builds circular layouts, curved motion, wave effects, and directional calculations for frontend interfaces.
- How deep it goes
- Explains right-triangle ratios, unit-circle coordinates, radians, waves, and circular-menu implementations in CSS and JavaScript.
- Examples
- Demonstrates radial menus, circular positioning, CSS rotation, curved paths, and sine-based bounce or wave motion.
- What you can do after
- Apply it via CSS and JavaScript to calculate circular positions, animate waves, and determine directions.
D3.js in Action, Third Edition
Trigonometry is the branch of mathematics that relates angles to lengths and coordinates in geometric figures.
- How it is used
- Positions radial visualization axes by converting angles and radii into SVG coordinates.
- How deep it goes
- Derives sine and cosine coordinates from a right triangle, then applies radians and coordinate-system direction in code.
- Examples
- Uses a twelve-month radial chart with a circle, month axes, labels, radius, and a centered SVG coordinate system.
- What you can do after
- Build it from scratch by calculating radial SVG endpoints from angles, radii, sine, and cosine.
Read how D3.js in Action, Third Edition explains trigonometry →
Related concepts
- cosine functionincludes · The cosine function is a periodic trigonometric function that maps a real number or angle to a value between −1 and 1.
- sine functionincludes · The sine function is a periodic trigonometric function that maps a real number or angle to a value between −1 and 1.
- tangentincludes · The tangent is a trigonometric function equal to the sine of an angle divided by its cosine when the cosine is nonzero.
- mathematicskind of · Mathematics is the formal study of quantities, structures, space, change, patterns, and relationships through abstraction and logical reasoning.
- Taylor seriesimplemented by · A Taylor series is a power series whose coefficients are determined by a function’s derivatives evaluated at a specified expansion point.
- radial menuuses · A radial menu is a user interface menu whose items are arranged around a central point and selected from surrounding directions.
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.

