| 158 | } |
| 159 | |
| 160 | Point2d 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 | |
| 165 | Point3d barycentricToCartesian(const Point3d* triangle, const Point2d& coords) |
| 166 | { |
no outgoing calls
no test coverage detected