| 77 | // unary operators |
| 78 | vec3<T> operator +() const { return vec3<T>(+x, +y, +z); } |
| 79 | vec3<T> operator -() const { return vec3<T>(-x, -y, -z); } |
| 80 | |
| 81 | // binary operators, multiply and divide operations for scalar |
| 82 | friend vec3<T> operator +(const vec3<T>& lhs, const vec3<T>& rhs) { vec3<T> result(lhs); result += rhs; return result; } |
nothing calls this directly
no outgoing calls
no test coverage detected