Barycentric coordinates are a mathematical tool used to express the position of a point within a simplex (a generalization of a triangle or tetrahedron) in terms of the vertices of that simplex.