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
6
struct
SVec
{
7
s16
x
,
y
,
z
;
8
};
9
10
class
csXyz
:
public
SVec
{
11
public
:
12
static
const
csXyz
Zero
;
13
~csXyz
() {}
14
csXyz
() {}
15
csXyz
(
s16
,
s16
,
s16
);
16
csXyz
operator+
(
csXyz
&);
17
void
operator+=
(
csXyz
&);
18
csXyz
operator-
(
csXyz
&);
19
csXyz
operator*
(
f32
);
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 */
csXyz
Definition
c_sxyz.h:10
csXyz::setall
void setall(s16 val)
Definition
c_sxyz.h:30
csXyz::operator*
csXyz operator*(f32)
Definition
c_sxyz.cpp:30
csXyz::operator-
csXyz operator-(csXyz &)
Definition
c_sxyz.cpp:26
csXyz::GetZ
s16 GetZ() const
Definition
c_sxyz.h:22
csXyz::~csXyz
~csXyz()
Definition
c_sxyz.h:13
csXyz::GetX
s16 GetX() const
Definition
c_sxyz.h:20
csXyz::GetY
s16 GetY() const
Definition
c_sxyz.h:21
csXyz::Zero
static const csXyz Zero
Definition
c_sxyz.h:12
csXyz::operator+=
void operator+=(csXyz &)
Definition
c_sxyz.cpp:20
csXyz::csXyz
csXyz()
Definition
c_sxyz.h:14
csXyz::operator+
csXyz operator+(csXyz &)
Definition
c_sxyz.cpp:16
csXyz::set
void set(s16 oX, s16 oY, s16 oZ)
Definition
c_sxyz.h:24
mtx.h
s16
signed short int s16
Definition
types.h:9
f32
float f32
Definition
types.h:25
SVec
Definition
c_sxyz.h:6
SVec::x
s16 x
Definition
c_sxyz.h:7
SVec::z
s16 z
Definition
c_sxyz.h:7
SVec::y
s16 y
Definition
c_sxyz.h:7
include
SSystem
SComponent
c_sxyz.h
Generated by
1.12.0