MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / volume

Function volume

source/MRMesh/MRPrecisePredicates3.cpp:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97Int128 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

Callers 1

segmentIntersectionOrderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected