Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
AeonGames::Vector4 Class Reference

4D vector class. More...

#include <aeongames/Vector4.hpp>

Collaboration diagram for AeonGames::Vector4:
Collaboration graph

Public Member Functions

DLL Vector4 ()
 Default constructor.
DLL Vector4 (const float *const aVector)
 Constructor.
DLL Vector4 (float aX, float aY, float aZ, float aW)
 Constructor.
DLL ~Vector4 ()
 destructor.
DLL const float *const GetVector4 () const
 Get a pointer to the internal vector data.
DLL const float & GetX () const
 Get the X component.
DLL const float & GetY () const
 Get the Y component.
DLL const float & GetZ () const
 Get the Z component.
DLL const float & GetW () const
 Get the W component.

Protected Attributes

float mVector [4]
 X, Y, Z and W components.

Detailed Description

4D vector class.

Definition at line 30 of file Vector4.hpp.

Constructor & Destructor Documentation

◆ Vector4() [1/3]

AeonGames::Vector4::Vector4 ( )

Default constructor.

Definition at line 22 of file Vector4.cpp.

◆ Vector4() [2/3]

AeonGames::Vector4::Vector4 ( const float *const aVector)

Constructor.

Parameters
aVectora float pointer or array containing vector data.
Note
This is the same format the values are internally stored and what Vector3::GetVector3 returns.

Definition at line 27 of file Vector4.cpp.

◆ Vector4() [3/3]

AeonGames::Vector4::Vector4 ( float aX,
float aY,
float aZ,
float aW )

Constructor.

Parameters
aXX component.
aYY component.
aZZ component.
aWW component.

Definition at line 32 of file Vector4.cpp.

Member Function Documentation

◆ GetVector4()

const float *const AeonGames::Vector4::GetVector4 ( ) const

Get a pointer to the internal vector data.

Returns
Pointer to the float array containing X,Y,Z,W components.

Definition at line 43 of file Vector4.cpp.

◆ GetW()

const float & AeonGames::Vector4::GetW ( ) const

Get the W component.

Returns
Reference to the W component.

Definition at line 63 of file Vector4.cpp.

◆ GetX()

const float & AeonGames::Vector4::GetX ( ) const

Get the X component.

Returns
Reference to the X component.

Definition at line 48 of file Vector4.cpp.

◆ GetY()

const float & AeonGames::Vector4::GetY ( ) const

Get the Y component.

Returns
Reference to the Y component.

Definition at line 53 of file Vector4.cpp.

◆ GetZ()

const float & AeonGames::Vector4::GetZ ( ) const

Get the Z component.

Returns
Reference to the Z component.

Definition at line 58 of file Vector4.cpp.

Member Data Documentation

◆ mVector

float AeonGames::Vector4::mVector[4]
protected

X, Y, Z and W components.

Definition at line 70 of file Vector4.hpp.


The documentation for this class was generated from the following files: