GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields | Static Public Attributes
radix::Vector2f Class Reference

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
 
Vector2foperator+= (const Vector2f &v)
 
constexpr Vector2f operator- (const Vector2f &v) const
 
Vector2foperator-= (const Vector2f &v)
 
constexpr Vector2f operator* (const Vector2f &v) const
 
Vector2foperator*= (const Vector2f &v)
 
constexpr Vector2f operator* (float scale) const
 
Vector2foperator*= (float scale)
 
constexpr Vector2f operator/ (float divisor) const
 
Vector2foperator/= (float divisor)
 
constexpr Vector2f operator/= (const Vector2f &v) const
 
Vector2foperator/= (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
 

Detailed Description

2-dimensional float-based vector/point storage and manipulation struct

Constructor & Destructor Documentation

constexpr radix::Vector2f::Vector2f ( )
inline
constexpr radix::Vector2f::Vector2f ( float  x,
float  y 
)
inline
constexpr radix::Vector2f::Vector2f ( float  v)
inline

Member Function Documentation

bool radix::Vector2f::fuzzyEqual ( const Vector2f v,
float  threshold = .02f 
) const
float radix::Vector2f::length ( ) const
constexpr bool radix::Vector2f::operator!= ( const Vector2f v) const
inline
constexpr Vector2f radix::Vector2f::operator* ( const Vector2f v) const
inline
constexpr Vector2f radix::Vector2f::operator* ( float  scale) const
inline
Vector2f& radix::Vector2f::operator*= ( const Vector2f v)
inline
Vector2f& radix::Vector2f::operator*= ( float  scale)
inline
constexpr Vector2f radix::Vector2f::operator+ ( const Vector2f v) const
inline
Vector2f& radix::Vector2f::operator+= ( const Vector2f v)
inline
constexpr Vector2f radix::Vector2f::operator- ( ) const
inline
constexpr Vector2f radix::Vector2f::operator- ( const Vector2f v) const
inline
Vector2f& radix::Vector2f::operator-= ( const Vector2f v)
inline
constexpr Vector2f radix::Vector2f::operator/ ( float  divisor) const
inline
Vector2f& radix::Vector2f::operator/= ( float  divisor)
inline
constexpr Vector2f radix::Vector2f::operator/= ( const Vector2f v) const
inline
Vector2f& radix::Vector2f::operator/= ( const Vector2f v)
inline
constexpr bool radix::Vector2f::operator== ( const Vector2f v) const
inline
std::string radix::Vector2f::str ( ) const

Field Documentation

union { ... }
union { ... }
float radix::Vector2f::g
float radix::Vector2f::r
float radix::Vector2f::s
float radix::Vector2f::t
float radix::Vector2f::u
const Vector2f radix::Vector2f::UP
static
float radix::Vector2f::v
float radix::Vector2f::x
float radix::Vector2f::y
const Vector2f radix::Vector2f::ZERO
static

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