GlPortal Class Reference
0.1.1
Source code documentation of the free and open 3D action puzzle game.
|
2-dimensional float
-based vector/point storage and manipulation struct
More...
#include <external/RadixEngine/include/radix/core/math/Vector2f.hpp>
Public Member Functions | |
constexpr | Vector2f () |
constexpr | Vector2f (float x, float y) |
constexpr | Vector2f (float v) |
float | length () const |
std::string | str () const |
constexpr bool | operator== (const Vector2f &v) const |
constexpr bool | operator!= (const Vector2f &v) const |
constexpr Vector2f | operator- () const |
constexpr Vector2f | operator+ (const Vector2f &v) const |
Vector2f & | operator+= (const Vector2f &v) |
constexpr Vector2f | operator- (const Vector2f &v) const |
Vector2f & | operator-= (const Vector2f &v) |
constexpr Vector2f | operator* (const Vector2f &v) const |
Vector2f & | operator*= (const Vector2f &v) |
constexpr Vector2f | operator* (float scale) const |
Vector2f & | operator*= (float scale) |
constexpr Vector2f | operator/ (float divisor) const |
Vector2f & | operator/= (float divisor) |
constexpr Vector2f | operator/= (const Vector2f &v) const |
Vector2f & | operator/= (const Vector2f &v) |
bool | fuzzyEqual (const Vector2f &, float threshold=.02f) const |
Data Fields | |
union { | |
float x | |
float r | |
float s | |
float u | |
}; | |
union { | |
float y | |
float g | |
float t | |
float v | |
}; | |
Static Public Attributes | |
static const Vector2f | ZERO |
static const Vector2f | UP |
2-dimensional float
-based vector/point storage and manipulation struct
|
inline |
|
inline |
|
inline |
bool radix::Vector2f::fuzzyEqual | ( | const Vector2f & | v, |
float | threshold = .02f |
||
) | const |
float radix::Vector2f::length | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string radix::Vector2f::str | ( | ) | const |
union { ... } |
union { ... } |
float radix::Vector2f::g |
float radix::Vector2f::r |
float radix::Vector2f::s |
float radix::Vector2f::t |
float radix::Vector2f::u |
|
static |
float radix::Vector2f::v |
float radix::Vector2f::x |
float radix::Vector2f::y |
|
static |