mirror of
https://github.com/zeldaret/tp
synced 2026-05-27 16:13:56 -04:00
9649319ec4
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
38 lines
633 B
C++
38 lines
633 B
C++
#ifndef C_SXYZ_H
|
|
#define C_SXYZ_H
|
|
|
|
#include <mtx.h>
|
|
|
|
struct SVec {
|
|
s16 x, y, z;
|
|
};
|
|
|
|
class csXyz : public SVec {
|
|
public:
|
|
static const csXyz Zero;
|
|
~csXyz() {}
|
|
csXyz() {}
|
|
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 */
|