Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
Vector4.hpp
Go to the documentation of this file.
1/*
2Copyright (C) 2015-2018,2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17#ifndef AEONGAMES_VECTOR4_H
18#define AEONGAMES_VECTOR4_H
24
26
27namespace AeonGames
28{
30 class Vector4
31 {
32 public:
34 DLL Vector4();
39 DLL Vector4 ( const float* const aVector );
46 DLL Vector4 ( float aX, float aY, float aZ, float aW );
48 DLL ~Vector4();
52 DLL const float* const GetVector4() const;
56 DLL const float& GetX() const;
60 DLL const float& GetY() const;
64 DLL const float& GetZ() const;
68 DLL const float& GetW() const;
69 protected:
70 float mVector[4];
71 };
72
77 DLL bool operator== ( const Vector4& aLhs, const Vector4& aRhs );
78}
79#endif
Platform-specific macros, includes, and DLL export/import definitions.
4D vector class.
Definition Vector4.hpp:31
DLL const float *const GetVector4() const
Get a pointer to the internal vector data.
Definition Vector4.cpp:43
DLL const float & GetZ() const
Get the Z component.
Definition Vector4.cpp:58
DLL const float & GetW() const
Get the W component.
Definition Vector4.cpp:63
DLL ~Vector4()
destructor.
DLL Vector4()
Default constructor.
Definition Vector4.cpp:22
DLL const float & GetY() const
Get the Y component.
Definition Vector4.cpp:53
DLL const float & GetX() const
Get the X component.
Definition Vector4.cpp:48
float mVector[4]
X, Y, Z and W components.
Definition Vector4.hpp:70
<- This is here just for the literals
Definition AABB.hpp:31
DLL const bool operator==(const Matrix3x3 &lhs, const Matrix3x3 &rhs)
Compare two 3x3 matrices for equality.