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

Function area

source/MRMesh/MRPrecisePredicates2.cpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61std::int64_t area( const Vector2i & a, const Vector2i & b, const Vector2i & c )
62{
63 const std::int64_t xx( a.x - c.x );
64 const std::int64_t xy( a.y - c.y );
65 const std::int64_t yx( b.x - c.x );
66 const std::int64_t yy( b.y - c.y );
67 return xx * yy - xy * yx;
68}
69
70} // anonymous namespace
71

Callers 2

smaller2Function · 0.70
segmentIntersectionOrderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected