Overview
Barycentric coordinates are used for triangle interpolation, point-in-triangle tests, rasterization, and mesh processing.
Represents a point inside a triangle as weights on the triangle's vertices.
Compact metadata for implementation and discovery.
Barycentric coordinates are used for triangle interpolation, point-in-triangle tests, rasterization, and mesh processing.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(1)
Worst
O(1)
Space
O(1)
p = u * a + v * b + w * c, with u + v + w = 1Represents a point using triangle vertex weights.
Draw the input shapes, active tests, and generated geometric result.
Barycentric Coordinates should be used with the assumptions and tradeoffs of coordinate System in mind.
What each reference supports for this entry.
Computational geometry textbook support for Barycentric Coordinates's geometric model, data structures, and robustness concerns.
Open sourceAlgorithm catalog support for Barycentric Coordinates's problem context, known alternatives, and practical selection tradeoffs.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Triangulation and interpolation workflows commonly use barycentric coordinates.
Ray-triangle tests often compute barycentric coordinates for hit points.