Skip to content
File Vec3.hpp
-
class Vec3
Public Functions
-
Vec3(float x, float y, float z)
-
Vec3(BlockPos&)
-
Vec3 operator+(const Vec3 rhs) const
-
Vec3 operator-(const Vec3 rhs) const
-
Vec3 operator*(const Vec3 rhs) const
-
Vec3 operator*(float rhs) const
-
Vec3 operator/(const Vec3 rhs) const
-
bool operator==(const Vec3 rhs) const
-
void rotateAroundXRadians(float angleRadians)
-
void rotateAroundYRadians(float angleRadians)
-
void rotateAroundZRadians(float angleRadians)
-
void rotateAroundPointRadians(const Vec3 &pivot, const Vec3 &angle)
-
void rotateAroundXDegrees(float angleDegrees)
-
void rotateAroundYDegrees(float angleDegrees)
-
void rotateAroundZDegrees(float angleDegrees)
-
void rotateAroundPointDegrees(const Vec3 &pivot, const Vec3 &angle)
Public Members
-
float x
-
float y
-
float z
Public Static Functions
-
static Vec3 lerp(const Vec3 &start, const Vec3 &end, float t)
-
template<>
struct formatter<Vec3>
Public Functions
-
inline constexpr auto parse(fmt::format_parse_context &ctx)
-
template<typename FormatContext>
inline auto format(const Vec3 &pos, FormatContext &ctx)