nomlib
Loading...
Searching...
No Matches
Vector4.h
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#include "export.hpp"
15#include "Vector3.h"
16
17class NOM_EXPORT Vector4 {
18public:
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};