nomlib
Loading...
Searching...
No Matches
Vector4.hpp
1/*
2Class:Vector4
3Implements:
4Author:Rich Davison
5Description: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
18namespace nom {
19// namespace math {
20
21class 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