MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / cross

Function cross

src/Core/Collision/PolygonalCollider.cpp:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 double cross(const Transform::UnitVector& O, const Transform::UnitVector& A,
29 const Transform::UnitVector& B)
30 {
31 return (A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (B.x - O.x);
32 }
33
34 std::vector<Transform::UnitVector> convexHull(
35 std::vector<Transform::UnitVector> points)

Callers 1

convexHullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected