Loading [MathJax]/extensions/MathMenu.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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 /* 80018BD0 */ ~csXyz() {};
14 /* inline */ csXyz() {}
15 /* inline */ csXyz(const csXyz& other) : SVec(other){};
16 /* 802673F4 */ csXyz(s16, s16, s16);
17 /* 80267404 */ csXyz operator+(csXyz&);
18 /* 8026745C */ void operator+=(csXyz&);
19 /* 80267490 */ csXyz operator-(csXyz&);
20 /* 802674E8 */ csXyz operator*(f32);
21 s16 GetX() const { return x; }
22 s16 GetY() const { return y; }
23 s16 GetZ() const { return z; }
24
25 void set(s16 oX, s16 oY, s16 oZ) {
26 x = oX;
27 y = oY;
28 z = oZ;
29 }
30
31 void setall(s16 val) {
32 x = val;
33 y = val;
34 z = val;
35 }
36};
37
38#endif /* C_SXYZ_H */
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
Definition d_a_hozelda.cpp:161
void setall(s16 val)
Definition c_sxyz.h:31
csXyz operator*(f32)
Definition c_sxyz.cpp:35
csXyz operator-(csXyz &)
Definition c_sxyz.cpp:30
s16 GetZ() const
Definition c_sxyz.h:23
~csXyz()
Definition c_sxyz.h:13
s16 GetX() const
Definition c_sxyz.h:21
s16 GetY() const
Definition c_sxyz.h:22
static const csXyz Zero
Definition c_sxyz.h:12
void operator+=(csXyz &)
Definition c_sxyz.cpp:23
csXyz()
Definition c_sxyz.h:14
csXyz(const csXyz &other)
Definition c_sxyz.h:15
csXyz operator+(csXyz &)
Definition c_sxyz.cpp:18
void set(s16 oX, s16 oY, s16 oZ)
Definition c_sxyz.h:25
signed short int s16
Definition types.h:6
float f32
Definition types.h:22