Files
dusklight/src/SSystem/SComponent/c_sxyz.cpp
T
Luke Street eed14acdc6 Annotate all data with DUSK_GAME_DATA (#2214)
The hope of auto-importing data via lld MinGW
+ pseudo_reloc is now dead thanks to ARM64,
so I just wrote a script to go annotate every
exported data symbol in the game instead.
2026-07-14 13:49:21 -06:00

33 lines
589 B
C++

/**
* c_sxyz.cpp
*
*/
#include "SSystem/SComponent/c_sxyz.h"
DUSK_GAME_DATA const csXyz csXyz::Zero = csXyz(0, 0, 0);
csXyz::csXyz(s16 x, s16 y, s16 z) {
this->x = x;
this->y = y;
this->z = z;
}
csXyz csXyz::operator+(csXyz& other) {
return csXyz(x + other.x, y + other.y, z + other.z);
}
void csXyz::operator+=(csXyz& other) {
x += other.x;
y += other.y;
z += other.z;
}
csXyz csXyz::operator-(csXyz& other) {
return csXyz(x - other.x, y - other.y, z - other.z);
}
csXyz csXyz::operator*(f32 mul) {
return csXyz(x * mul, y * mul, z * mul);
}