|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
2D vector class. More...
#include <aeongames/Vector2.hpp>

Public Member Functions | |
| DLL | Vector2 () |
| Default constructor. | |
| DLL | Vector2 (const float *const aVector) |
| Constructor. | |
| DLL | Vector2 (float aX, float aY) |
| Constructor. | |
| DLL | ~Vector2 () |
| destructor. | |
| DLL const float *const | GetVector () 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. | |
Protected Attributes | |
| float | mVector [2] |
| X and Y components. | |
2D vector class.
Definition at line 25 of file Vector2.hpp.
| AeonGames::Vector2::Vector2 | ( | ) |
Default constructor.
Definition at line 21 of file Vector2.cpp.
| AeonGames::Vector2::Vector2 | ( | const float *const | aVector | ) |
Constructor.
| aVector | a float pointer or array containing vector data. |
Definition at line 26 of file Vector2.cpp.
| AeonGames::Vector2::Vector2 | ( | float | aX, |
| float | aY ) |
| const float *const AeonGames::Vector2::GetVector | ( | ) | const |
Get a pointer to the internal vector data.
Definition at line 40 of file Vector2.cpp.
| const float & AeonGames::Vector2::GetX | ( | ) | const |
Get the X component.
Definition at line 45 of file Vector2.cpp.
| const float & AeonGames::Vector2::GetY | ( | ) | const |
Get the Y component.
Definition at line 50 of file Vector2.cpp.
|
protected |
X and Y components.
Definition at line 54 of file Vector2.hpp.