MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / operator-

Method operator-

modules/gui/gui/include/SkrGui/math/vector.hpp:48–48  ·  view source on GitHub ↗

arithmetic ops

Source from the content-addressed store, hash-verified

46
47 // arithmetic ops
48 inline Vector3 operator-() const SKR_NOEXCEPT { return Vector3(-x, -y, -z); }
49
50 friend inline Vector3 operator+(const Vector3& lhs, float rhs) SKR_NOEXCEPT { return Vector3(lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); }
51 friend inline Vector3 operator-(const Vector3& lhs, float rhs) SKR_NOEXCEPT { return Vector3(lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); }

Callers

nothing calls this directly

Calls 1

Vector3Class · 0.70

Tested by

no test coverage detected