nomlib
Toggle main menu visibility
Loading...
Searching...
No Matches
include
nomlib
audio
vendor
Vector4.h
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
#include "export.hpp"
15
#include "Vector3.h"
16
17
class
NOM_EXPORT Vector4 {
18
public
:
19
Vector4(
void
) {
20
x = y = z = w = 1.0f;
21
}
22
Vector4(
float
x,
float
y,
float
z,
float
w) {
23
this->x = x;
24
this->y = y;
25
this->z = z;
26
this->w = w;
27
}
28
29
Vector3
ToVector3() {
30
return
Vector3
(x, y, z);
31
}
32
33
~Vector4(
void
){}
34
35
float
x;
36
float
y;
37
float
z;
38
float
w;
39
};
Vector3
Definition
Vector3.h:18
Generated on
for nomlib by
1.18.0