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

Method operator%

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

Source from the content-addressed store, hash-verified

52 friend inline Vector3 operator*(const Vector3& lhs, float rhs) SKR_NOEXCEPT { return Vector3(lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); }
53 friend inline Vector3 operator/(const Vector3& lhs, float rhs) SKR_NOEXCEPT { return Vector3(lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); }
54 friend inline Vector3 operator%(const Vector3& lhs, float rhs) SKR_NOEXCEPT { return Vector3(::std::fmod(lhs.x, rhs), ::std::fmod(lhs.y, rhs), ::std::fmod(lhs.z, rhs)); }
55
56 friend inline Vector3 operator+(float lhs, const Vector3& rhs) SKR_NOEXCEPT { return Vector3(lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); }
57 friend inline Vector3 operator-(float lhs, const Vector3& rhs) SKR_NOEXCEPT { return Vector3(lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); }

Callers

nothing calls this directly

Calls 2

Vector3Class · 0.70
fmodFunction · 0.50

Tested by

no test coverage detected