| 95 | } |
| 96 | |
| 97 | Int128 volume( const Vector3i & a, const Vector3i & b, const Vector3i & c, const Vector3i & d ) |
| 98 | { |
| 99 | const Vector3i64 x( a - d ); |
| 100 | const Vector3i64 y( b - d ); |
| 101 | const Vector3i64 z( c - d ); |
| 102 | |
| 103 | return |
| 104 | x.x * Int128( y.y * z.z - y.z * z.y ) |
| 105 | - x.y * Int128( y.x * z.z - y.z * z.x ) |
| 106 | + x.z * Int128( y.x * z.y - y.y * z.x ); |
| 107 | } |
| 108 | |
| 109 | } // anonymous namespace |
| 110 |
no outgoing calls
no test coverage detected