MCPcopy Create free account
hub / github.com/alicevision/AliceVision / barycentricToCartesian

Function barycentricToCartesian

src/aliceVision/mesh/Texturing.cpp:160–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160Point2d barycentricToCartesian(const Point2d* triangle, const Point2d& coords)
161{
162 return triangle[0] + (triangle[2] - triangle[0]) * coords.x + (triangle[1] - triangle[0]) * coords.y;
163}
164
165Point3d barycentricToCartesian(const Point3d* triangle, const Point2d& coords)
166{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected