| 87 | friend vec3<T> operator /(const vec3<T>& lhs, T value) { return vec3<T>(lhs.x/value, lhs.y/value, lhs.z/value); } |
| 88 | |
| 89 | friend bool operator <(const vec3<T>& lhs, const vec3<T>& rhs) |
| 90 | { |
| 91 | // Operator < and strict weak ordering |
| 92 | if(lhs.x != rhs.x) return lhs.x < rhs.x; |
| 93 | if(lhs.y != rhs.y) return lhs.y < rhs.y; |
| 94 | if(lhs.z != rhs.z) return lhs.z < rhs.z; |
| 95 | |
| 96 | return false; |
| 97 | } |
| 98 | |
| 99 | bool operator ==(const vec3<T>& rhs) const |
| 100 | { |
nothing calls this directly
no outgoing calls
no test coverage detected