Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
c_sxyz.h
Go to the documentation of this file.
1#ifndef C_SXYZ_H
2#define C_SXYZ_H
3
4#include "dolphin/mtx.h"
5
6struct SVec {
7 s16 x, y, z;
8};
9
10class csXyz : public SVec {
11public:
12 static const csXyz Zero;
13 ~csXyz() {}
14 csXyz() {}
15 csXyz(s16, s16, s16);
17 void operator+=(csXyz&);
20 s16 GetX() const { return x; }
21 s16 GetY() const { return y; }
22 s16 GetZ() const { return z; }
23
24 void set(s16 oX, s16 oY, s16 oZ) {
25 x = oX;
26 y = oY;
27 z = oZ;
28 }
29
30 void setall(s16 val) {
31 x = val;
32 y = val;
33 z = val;
34 }
35};
36
37#endif /* C_SXYZ_H */
Definition c_sxyz.h:10
void setall(s16 val)
Definition c_sxyz.h:30
csXyz operator*(f32)
Definition c_sxyz.cpp:30
csXyz operator-(csXyz &)
Definition c_sxyz.cpp:26
s16 GetZ() const
Definition c_sxyz.h:22
~csXyz()
Definition c_sxyz.h:13
s16 GetX() const
Definition c_sxyz.h:20
s16 GetY() const
Definition c_sxyz.h:21
static const csXyz Zero
Definition c_sxyz.h:12
void operator+=(csXyz &)
Definition c_sxyz.cpp:20
csXyz()
Definition c_sxyz.h:14
csXyz operator+(csXyz &)
Definition c_sxyz.cpp:16
void set(s16 oX, s16 oY, s16 oZ)
Definition c_sxyz.h:24
signed short int s16
Definition types.h:9
float f32
Definition types.h:25
Definition c_sxyz.h:6
s16 x
Definition c_sxyz.h:7
s16 z
Definition c_sxyz.h:7
s16 y
Definition c_sxyz.h:7