#include <lib/egg/math.hpp>
A two-dimensional floating point vector.
Definition at line 26 of file math.hpp.
|
| Vector2f () |
| Constructs an empty vector.
|
|
| Vector2f (f32 fx, f32 fy) |
| Constructs a vector from two floating point values.
|
|
void | set (float x, float y) |
|
float | normalise () |
|
float | getLength () const |
| Gets the length of the vector.
|
|
| VEC2 (float fx, float fy) |
|
| VEC2 (const VEC2 &v) |
|
◆ Vector2f() [1/2]
EGG::Vector2f::Vector2f |
( |
| ) |
|
|
inline |
Constructs an empty vector.
Definition at line 29 of file math.hpp.
◆ ~Vector2f()
EGG::Vector2f::~Vector2f |
( |
| ) |
|
|
inline |
◆ Vector2f() [2/2]
EGG::Vector2f::Vector2f |
( |
f32 | fx, |
|
|
f32 | fy ) |
|
inline |
Constructs a vector from two floating point values.
Definition at line 34 of file math.hpp.
◆ set()
void EGG::Vector2f::set |
( |
float | x, |
|
|
float | y ) |
|
inline |
◆ getLength()
float EGG::Vector2f::getLength |
( |
| ) |
const |
|
inline |
Gets the length of the vector.
Definition at line 44 of file math.hpp.