Converts from barycentric to cartesian coordinates
| 55 | |
| 56 | // Converts from barycentric to cartesian coordinates |
| 57 | XMFLOAT2 BarycentricToCartesian(const XMFLOAT3& r, const XMFLOAT2& pos1, const XMFLOAT2& pos2, const XMFLOAT2& pos3) |
| 58 | { |
| 59 | float x = r.x * pos1.x + r.y * pos2.x + r.z * pos3.x; |
| 60 | float y = r.x * pos1.y + r.y * pos2.y + r.z * pos3.y; |
| 61 | |
| 62 | return XMFLOAT2(x, y); |
| 63 | } |
| 64 | |
| 65 | // Converts from barycentric to cartesian coordinates |
| 66 | XMVECTOR BarycentricToCartesian(const XMFLOAT3& r, FXMVECTOR pos1, FXMVECTOR pos2, FXMVECTOR pos3) |
nothing calls this directly
no outgoing calls
no test coverage detected