cross product of 2 vector. A->B X C->D
| 86 | |
| 87 | // cross product of 2 vector. A->B X C->D |
| 88 | float 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 | |
| 93 | float Vec2::angle(const Vec2& v1, const Vec2& v2) |
| 94 | { |
no outgoing calls
no test coverage detected