added const and constexpr refacotred build options

This commit is contained in:
2024-09-23 10:46:32 -07:00
parent ee68574542
commit 46e7a82f1d
5 changed files with 97 additions and 91 deletions

View File

@@ -146,7 +146,7 @@ namespace omath
return {x * v.x, y * v.y, z * v.z};
}
[[nodiscard]] constexpr Vector3 operator/(float fl) const
[[nodiscard]] constexpr Vector3 operator/(const float fl) const
{
return {x / fl, y / fl, z / fl};
}