Go to the documentation of this file.
30 #ifndef MCL_3DL_VEC3_H
31 #define MCL_3DL_VEC3_H
43 inline constexpr
Vec3(
const float x,
const float y,
const float z)
139 inline constexpr
float dot(
const Vec3& q)
const
155 return std::sqrt(
dot(*
this));
159 return *
this /
norm();
164 #endif // MCL_3DL_VEC3_H
Vec3 & operator+=(const Vec3 &q)
constexpr Vec3 operator-() const
constexpr Vec3 operator-(const Vec3 &q) const
constexpr Vec3 times(const Vec3 &q) const
constexpr Vec3 operator/(const float s) const
constexpr Vec3 operator+(const Vec3 &q) const
float & operator[](const size_t i)
constexpr Vec3 cross(const Vec3 &q) const
constexpr bool operator==(const Vec3 &q) const
constexpr Vec3(const float x, const float y, const float z)
Vec3 & operator*=(const float &s)
constexpr float dot(const Vec3 &q) const
Vec3 & operator-=(const Vec3 &q)
constexpr bool operator!=(const Vec3 &q) const
Vec3 & operator/=(const float &s)
constexpr Vec3 operator*(const float s) const
float operator[](const size_t i) const
mcl_3dl
Author(s): Atsushi Watanabe
autogenerated on Thu Oct 17 2024 02:18:04