| 175 | * quantity and direction. |
| 176 | */ |
| 177 | friend T cross(const vec2<T>& v1, const vec2<T>& v2) |
| 178 | { |
| 179 | /* |
| 180 | | i j k | |
| 181 | | v1.x v1.y 0 | |
| 182 | | v2.x v2.y 0 | |
| 183 | */ |
| 184 | return v1.x * v2.y - v2.x * v1.y; |
| 185 | } |
| 186 | |
| 187 | template <typename charT, class traits> |
| 188 | friend std::basic_istream<charT, traits>& operator >>( |
nothing calls this directly
no outgoing calls
no test coverage detected