18 #include <serine/Serializable.hpp>
27 struct Vector3f :
public serine::Serializable {
49 std::string
str()
const;
55 return x == v.
x &&
y == v.
y &&
z == v.
z;
59 return x != v.
x ||
y != v.
y ||
z != v.
z;
70 x *= v.
x;
y *= v.
y;
z *= v.
z;
78 x *= v;
y *= v;
z *= v;
86 x /= v.
x;
y /= v.
y;
z /= v.
z;
94 x /= v;
y /= v;
z /= v;
102 x += v.
x;
y += v.
y;
z += v.
z;
110 x -= v.
x;
y -= v.
y;
z -= v.
z;
118 operator btVector3()
const;
124 return v1.
x * v2.
x + v1.
y * v2.
y + v1.
z * v2.
z;
127 Vector3f
cross(
const Vector3f &v1,
const Vector3f &v2);
float r
Definition: Vector3f.hpp:29
constexpr Vector3f operator/(const Vector3f &v) const
Definition: Vector3f.hpp:82
Vector3f & operator=(const btVector3 &)
Definition: Vector3f.cpp:61
Definition: GameController.hpp:7
float bank
Definition: Vector3f.hpp:35
static const Vector3f UP
Definition: Vector3f.hpp:38
constexpr bool operator==(const Vector3f &v) const
Definition: Vector3f.hpp:54
Vector3f & operator/=(const Vector3f &v)
Definition: Vector3f.hpp:85
constexpr Vector3f operator-(const Vector3f &v) const
Definition: Vector3f.hpp:106
float x
Definition: Vector3f.hpp:29
constexpr Vector3f()
Definition: Vector3f.hpp:41
float attitude
Definition: Vector3f.hpp:32
float azimuth
Definition: Vector3f.hpp:29
constexpr Vector3f operator*(const Vector3f &v) const
Definition: Vector3f.hpp:66
Vector3f cross(const Vector3f &v1, const Vector3f &v2)
Definition: Vector3f.cpp:67
Vector3f & operator+=(const Vector3f &v)
Definition: Vector3f.hpp:101
float g
Definition: Vector3f.hpp:32
std::string str() const
Definition: Vector3f.cpp:32
constexpr float dot(const Vector2f &v1, const Vector2f &v2)
Definition: Vector2f.hpp:115
float y
Definition: Vector3f.hpp:32
bool fuzzyEqual(const Vector3f &, float threshold=.02f) const
Definition: Vector3f.cpp:45
float z
Definition: Vector3f.hpp:35
float b
Definition: Vector3f.hpp:35
float pitch
Definition: Vector3f.hpp:32
float psi
Definition: Vector3f.hpp:35
float roll
Definition: Vector3f.hpp:35
constexpr Vector3f(float x, float y, float z)
Definition: Vector3f.hpp:43
float s
Definition: Vector3f.hpp:29
Vector3f & operator*=(float v)
Definition: Vector3f.hpp:77
float u
Definition: Vector3f.hpp:35
void serialize(serine::Archiver &)
Definition: Vector3f.cpp:38
float tilt
Definition: Vector3f.hpp:35
constexpr Vector3f operator/(float v) const
Definition: Vector3f.hpp:90
constexpr Vector3f operator-() const
Definition: Vector3f.hpp:62
float heading
Definition: Vector3f.hpp:29
float tetha
Definition: Vector3f.hpp:29
Vector3f & operator/=(float v)
Definition: Vector3f.hpp:93
float yaw
Definition: Vector3f.hpp:29
constexpr Vector3f operator*(float v) const
Definition: Vector3f.hpp:74
static const Vector3f ZERO
Definition: Vector3f.hpp:38
constexpr Vector3f operator+(const Vector3f &v) const
Definition: Vector3f.hpp:98
constexpr bool operator!=(const Vector3f &v) const
Definition: Vector3f.hpp:58
static const Vector3f FORWARD
Definition: Vector3f.hpp:38
float phi
Definition: Vector3f.hpp:32
float t
Definition: Vector3f.hpp:32
constexpr Vector3f(float v)
Definition: Vector3f.hpp:45
Vector3f & operator*=(const Vector3f &v)
Definition: Vector3f.hpp:69
3-dimensional float-based vector/point storage and manipulation struct
Definition: Vector3f.hpp:27
Vector2f normalize(const Vector2f &v)
Definition: Vector2f.hpp:118
float elevation
Definition: Vector3f.hpp:32
float length() const
Definition: Vector3f.cpp:28
Vector3f & operator-=(const Vector3f &v)
Definition: Vector3f.hpp:109