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

Method operator/

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

Source from the content-addressed store, hash-verified

156 friend inline Vector4 operator-(const Vector4& lhs, float rhs) SKR_NOEXCEPT { return Vector4(lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); }
157 friend inline Vector4 operator*(const Vector4& lhs, float rhs) SKR_NOEXCEPT { return Vector4(lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); }
158 friend inline Vector4 operator/(const Vector4& lhs, float rhs) SKR_NOEXCEPT { return Vector4(lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); }
159 friend inline Vector4 operator%(const Vector4& lhs, float rhs) SKR_NOEXCEPT { return Vector4(::std::fmod(lhs.x, rhs), ::std::fmod(lhs.y, rhs), ::std::fmod(lhs.z, rhs), ::std::fmod(lhs.w, rhs)); }
160
161 friend inline Vector4 operator+(float lhs, const Vector4& rhs) SKR_NOEXCEPT { return Vector4(lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); }

Callers

nothing calls this directly

Calls 1

Vector4Class · 0.85

Tested by

no test coverage detected