Files
tww/include/SSystem/SComponent/c_sxyz.h
T
Luke Street adb95b135c Import project
Original repository: https://github.com/encounter/ww
2023-09-10 00:48:55 -04:00

35 lines
684 B
C++

#ifndef C_SXYZ_H
#define C_SXYZ_H
#include "dolphin/mtx/vec.h"
class csXyz : public SVec {
public:
static const csXyz Zero;
~csXyz() {};
/* inline */ csXyz() {}
/* inline */ csXyz(const csXyz& other) : SVec(other){};
csXyz(s16, s16, s16);
csXyz operator+(csXyz&);
void operator+=(csXyz&);
csXyz operator-(csXyz&);
csXyz operator*(f32);
s16 GetX() const { return x; }
s16 GetY() const { return y; }
s16 GetZ() const { return z; }
void set(s16 oX, s16 oY, s16 oZ) {
x = oX;
y = oY;
z = oZ;
}
void setall(s16 val) {
x = val;
y = val;
z = val;
}
};
#endif /* C_SXYZ_H */