MCPcopy Create free account
hub / github.com/RozDavid/UnScene3D / operator-

Method operator-

utils/cpp_utils/include/vec3.h:65–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 inline vec3<T> operator-() const {
66 return vec3<T>(-array[0], -array[1], -array[2]);
67 }
68
69 inline vec3<T> operator+(const vec3 &other) const {
70 return vec3<T>(array[0] + other.array[0], array[1] + other.array[1], array[2] + other.array[2]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected