22 #ifndef WATCHMAKER_TYPES3D_H 23 #define WATCHMAKER_TYPES3D_H 25 #include "common/stream.h" 26 #include "math/vector3d.h" 27 #include "watchmaker/types.h" 32 t3dF32 x = 0.0f, y = 0.0f;
34 constexpr
t3dV2F() =
default;
35 constexpr
t3dV2F(
float _x,
float _y,
float z) : x(_x), y(_y) {}
39 t3dF32 x = 0.0f, y = 0.0f, z = 0.0f;
41 constexpr
t3dV3F() =
default;
42 constexpr
t3dV3F(
float _x,
float _y,
float _z) : x(_x), y(_y), z(_z) {}
43 t3dV3F(
const Math::Vector3d &vector) {
57 return t3dV3F(x, y, z);
59 t3dV3F operator+(
const t3dV3F &rhs)
const {
66 t3dV3F operator-(
const t3dV3F &rhs)
const {
73 t3dV3F operator-()
const {
80 t3dV3F operator*(
float scalar)
const {
87 t3dV3F &operator*=(
float scalar) {
93 bool operator==(
const t3dV3F &rhs)
const {
94 return this->x == rhs.x && this->y == rhs.y && this->z == rhs.z;
96 bool operator!=(
const t3dV3F &rhs)
const {
97 return !(*
this == rhs);
105 t3dF32 tras_n = 0.0f;
120 #endif // WATCHMAKER_TYPES3D_H
Definition: 2d_stuff.h:30
Definition: types3d.h:101
byte readByte()
Definition: stream.h:434
FORCEINLINE float readFloatLE()
Definition: stream.h:615