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
- Uses triangle-angle relationships to position elements in circular layouts and create curved motion and wave effects.
- How deep it goes
- Defines sine, cosine, and tangent as side ratios, then works through circle coordinates and CSS and JavaScript positioning.
- Examples
- Works through a six-item radial menu and shows JavaScript and CSS circular-menu implementations alongside a sine-wave animation.
- What you can do after
- Build it from scratch: calculate circular element positions with JavaScript or CSS and apply sine to a repeating UI effect.
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 →
Also covered in
- Robotics for ProgrammersIn early access (MEAP)
- Julia as a Second Language
- Building Quantum Software with Python
- The Quick Python Book, Fourth Edition
What to know first
- degreesA degree is a unit of angular measurement equal to one three-hundred-sixtieth of a full revolution.
- functionA function is a callable unit of program code that performs a computation or operation, can accept inputs, and may produce a result or side effect.
- angleAn angle is a geometric measure of rotational separation between two rays, directions, or vectors sharing a common origin.
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.
- mathematicskind of · Mathematics is the formal study of quantities, structures, space, change, patterns, and relationships through abstraction and logical reasoning.
- tangentincludes · The tangent is a trigonometric function equal to the sine of an angle divided by its cosine when the cosine is nonzero.
- coordinateproduces · A coordinate is a numerical value, or one component of an ordered set of values, specifying a position relative to a coordinate system.
Questions about trigonometry
What is trigonometry?
Trigonometry is the branch of mathematics studying relationships among angles, lengths, geometric ratios, coordinates, and periodic functions.
Which Manning books explain trigonometry?
Math for Web Design and D3.js in Action, Third Edition.
What should I know before learning trigonometry?
Manning books that teach trigonometry usually introduce degrees, function, angle and numeric pi first.
What kinds of trigonometry are there?
Kinds of trigonometry include cosine function, sine function and tangent.
What is trigonometry a kind of?
Trigonometry is a kind of mathematics. Mathematics is the formal study of quantities, structures, space, change, patterns, and relationships through abstraction and logical reasoning.
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.

