nomlib
Toggle main menu visibility
Loading...
Searching...
No Matches
include
nomlib
math
Vector4.hpp
1
/*
2
Class:Vector4
3
Implements:
4
Author:Rich Davison
5
Description:VERY simple Vector4 class. Students are encouraged to modify this as necessary!
6
7
-_-_-_-_-_-_-_,------,
8
_-_-_-_-_-_-_-| /\_/\ NYANYANYAN
9
-_-_-_-_-_-_-~|__( ^ .^) /
10
_-_-_-_-_-_-_-"" ""
11
12
*/
13
#pragma once
14
15
#include "export.hpp"
16
#include "nomlib/math/Vector3.hpp"
17
18
namespace
nom {
19
// namespace math {
20
21
class
Vector4
22
{
23
public
:
24
Vector4() {
25
x = y = z = w = 1.0f;
26
}
27
28
Vector4(
float
x,
float
y,
float
z,
float
w) {
29
this->x = x;
30
this->y = y;
31
this->z = z;
32
this->w = w;
33
}
34
35
Vector3
ToVector3() {
36
return
Vector3
(x, y, z);
37
}
38
39
~Vector4() {}
40
41
float
x;
42
float
y;
43
float
z;
44
float
w;
45
};
46
47
// } // namespace math
48
}
// namespace nom
Vector3
Definition
Vector3.h:18
Generated on
for nomlib by
1.18.0