Triangle
A triangle is a polygon bounded by three line segments joining three noncollinear vertices.
Geometry for Programmers
A polygon bounded by three line segments joining three noncollinear vertices.
- How it is used
- Represents surfaces as simple elements and supplies terminology for geometry code, mesh models, and algorithm inputs.
- How deep it goes
- Defines vertices, points, boundaries, degeneracy, adjacency, and mesh quality, but defers a full treatment of manifolds.
- Examples
- Uses vertex-and-point diagrams, on-versus-in boundary diagrams, degenerate needles and caps, and neighboring triangles in a mesh.
- What you can do after
- Evaluate triangle terminology and quality, recognize degenerate cases, and understand their consequences for mesh topology and algorithms.
Math for Web Design
A triangle is a polygon with three sides and three vertices.
- How it is used
- Supports frontend layouts, rotations, animations, directional calculations, and canvas or SVG geometry.
- How deep it goes
- Explains right-triangle side ratios, unit-circle coordinates, radians, and repeating function behavior without developing advanced geometry.
- Examples
- Uses a right-triangle diagram, unit-circle values, mouse coordinates, canvas lines, CSS rotation, and curved frontend animations.
- What you can do after
- Apply triangle relationships to calculate horizontal and vertical components, slopes, positions, rotations, and movement directions.
Related concepts
- nodehas part · A node is a discrete element in a structured system, such as a graph, tree, network, or distributed system, representing an entity, state, component, or computational unit and potentially connected to other elements.
- edgehas part · An edge is a localized image boundary where intensity, color, or another visual property changes sharply.
- hybrid modelused by · A hybrid model is a geometric representation that combines smooth surface elements and triangle mesh elements in one model or across interchangeable representations.
- degenerate triangleincludes · A degenerate triangle is a triangle with zero area because its vertices coincide or are collinear.
- signed distanceused by · A signed distance is a distance from a geometric boundary or separator assigned a positive or negative sign according to which side contains the point.
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.

