Dot product of two vectors.
| 104 | |
| 105 | /// Dot product of two vectors. |
| 106 | inline double dotProduct(const Vector2 a, const Vector2 b) { |
| 107 | return a.x*b.x+a.y*b.y; |
| 108 | } |
| 109 | |
| 110 | /// A special version of the cross product for 2D vectors (returns scalar value). |
| 111 | inline double crossProduct(const Vector2 a, const Vector2 b) { |
no outgoing calls
no test coverage detected