mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-18 06:15:20 -04:00
dfa8efa97b
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
39 lines
718 B
C++
39 lines
718 B
C++
#ifndef C_SXYZ_H
|
|
#define C_SXYZ_H
|
|
|
|
#include "dolphin/mtx.h"
|
|
|
|
struct SVec {
|
|
s16 x, y, z;
|
|
};
|
|
|
|
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 */
|