13 [[nodiscard]]
const float*
62 [[nodiscard]]
const float*
122 return {-this->
x, -this->
y, -this->
z};
129 return {to.
x - from.
x, to.
y - from.
y, to.
z - from.
z};
201 return {v.x, v.y, v.z};
255 const vec3f r {lhs / rhs.
x, lhs / rhs.
y, lhs / rhs.
z};
278 return x * rhs.
x +
y * rhs.
y +
z * rhs.
z;
287 (
y * u.z) - (
z * u.y),
288 (
z * u.x) - (
x * u.z),
289 (
x * u.y) - (
y * u.x)
305 std::string
to_string(
const vec3f& v) {
return fmt::format(
"({}, {}, {})", v.x, v.y, v.z); }
306 std::string
to_string(
const unit3f& v) {
return fmt::format(
"({}, {}, {})", v.x, v.y, v.z); }
307 std::string
to_string(
const Scale3f& v) {
return fmt::format(
"({}, {}, {})", v.x, v.y, v.z); }
Angle operator+(const Angle &lhs, const Angle &rhs)
Angle operator-(const Angle &lhs, const Angle &rhs)
Angle operator/(const Angle &lhs, float rhs)
float lerp_float(float f, float scale, float t)
vec3f lerp_vec3f(const vec3f &f, float v, const vec3f &t)
Functions.
std::string to_string(const Aabb &a)
bool is_equal(int lhs, int rhs)
Angle operator*(const Angle &lhs, float rhs)
static unit3f to_unit(float x, float y, float z)
void operator-=(const vec3f &rhs)
unit3f get_normalized() const
void operator*=(float rhs)
unit3f as_normalized() const
constexpr float get_length_squared() const
vec3f cross(const vec3f &u) const
static vec3f from_to(const vec3f &from, const vec3f &to)
void operator+=(const vec3f &rhs)
float dot(const vec3f &rhs) const
void operator/=(float rhs)