Nxna2
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Enumerations
Enumerator
Pages
src
Vector4.h
1
#ifndef MATH_VECTOR4_H
2
#define MATH_VECTOR4_H
3
4
namespace
Nxna
5
{
6
struct
Matrix;
7
8
class
Vector4
9
{
10
public
:
11
12
float
X, Y, Z, W;
13
14
Vector4
()
15
{
16
X = Y = Z = W = 0;
17
}
18
19
Vector4
(
float
x,
float
y,
float
z,
float
w)
20
{
21
X = x;
22
Y = y;
23
Z = z;
24
W = w;
25
}
26
27
Vector4
operator /(
float
s)
const
28
{
29
return
Vector4
(X / s, Y / s, Z / s, W / s);
30
}
31
32
static
void
Transform(
const
Vector4
& v,
const
Matrix
& matrix,
Vector4
& result);
33
};
34
}
35
36
#endif // MATH_VECTOR4_H
Nxna::Vector4
Definition:
Vector4.h:8
Nxna::Matrix
Definition:
Matrix.h:8
Generated on Sun Aug 7 2016 12:28:15 for Nxna2 by
1.8.7