Barycentric Coordinates
Express a point as affine triangle weights and use their signs to distinguish its interior, edges and exterior.
Free theory articleExpress a point as affine triangle weights and use their signs to distinguish its interior, edges and exterior.
Concept & interpretation
Barycentric coordinates express any point p in the plane as a unique affine combination of three non-collinear triangle vertices v1, v2, and v3, directly encoding whether p lies strictly inside, on the boundary, or outside the triangle.
Experiment
Explore interior interpolation, edge boundaries, exterior extrapolation, and collinear degeneracy in https://riano.app/module/barycentric-coordinates:
- Keep the default triangle (0,0), (3,0), (0,3) with p = (1,1) to verify equal weights (1/3, 1/3, 1/3) and classification
Inside. - Move Point x to 0 and Point y to 0 so p coincides with v1, yielding weights
[1, 0, 0]and classificationBoundary. - Set collinear vertices (-1,-1), (0,0), (1,1) to verify that the singular system reports
Degenerateand hides undefined weights asUnavailable.