MCPcopy Create free account
hub / github.com/axmolengine/axmol / crossProduct2Vector

Function crossProduct2Vector

core/math/Vec2.cpp:88–91  ·  view source on GitHub ↗

cross product of 2 vector. A->B X C->D

Source from the content-addressed store, hash-verified

86
87// cross product of 2 vector. A->B X C->D
88float crossProduct2Vector(const Vec2& A, const Vec2& B, const Vec2& C, const Vec2& D)
89{
90 return (D.y - C.y) * (B.x - A.x) - (D.x - C.x) * (B.y - A.y);
91}
92
93float Vec2::angle(const Vec2& v1, const Vec2& v2)
94{

Callers 3

isLineIntersectMethod · 0.85
isLineParallelMethod · 0.85
isLineOverlapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected