| 157 | } |
| 158 | |
| 159 | static inline vec3 cross(const vec3 &l, const vec3 &r) { |
| 160 | return (l ^ r); |
| 161 | } |
| 162 | |
| 163 | inline vec3<T> operator-(const vec3 &other) const { |
| 164 | return vec3<T>(array[0] - other.array[0], array[1] - other.array[1], array[2] - other.array[2]); |