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::Vector3f Class Reference

3-dimensional float-based vector/point storage and manipulation struct More...

#include <external/RadixEngine/include/radix/core/math/Vector3f.hpp>

Inherits Serializable.

Public Member Functions

constexpr Vector3f ()
 
constexpr Vector3f (float x, float y, float z)
 
constexpr Vector3f (float v)
 
float length () const
 
std::string str () const
 
void serialize (serine::Archiver &)
 
constexpr bool operator== (const Vector3f &v) const
 
constexpr bool operator!= (const Vector3f &v) const
 
constexpr Vector3f operator- () const
 
constexpr Vector3f operator* (const Vector3f &v) const
 
Vector3foperator*= (const Vector3f &v)
 
constexpr Vector3f operator* (float v) const
 
Vector3foperator*= (float v)
 
constexpr Vector3f operator/ (const Vector3f &v) const
 
Vector3foperator/= (const Vector3f &v)
 
constexpr Vector3f operator/ (float v) const
 
Vector3foperator/= (float v)
 
constexpr Vector3f operator+ (const Vector3f &v) const
 
Vector3foperator+= (const Vector3f &v)
 
constexpr Vector3f operator- (const Vector3f &v) const
 
Vector3foperator-= (const Vector3f &v)
 
bool fuzzyEqual (const Vector3f &, float threshold=.02f) const
 
 Vector3f (const btVector3 &)
 
 operator btVector3 () const
 
Vector3foperator= (const btVector3 &)
 

Data Fields

union {
   float   x
 
   float   r
 
   float   s
 
   float   yaw
 
   float   heading
 
   float   azimuth
 
   float   tetha
 
}; 
 
union {
   float   y
 
   float   g
 
   float   t
 
   float   pitch
 
   float   attitude
 
   float   elevation
 
   float   phi
 
}; 
 
union {
   float   z
 
   float   b
 
   float   u
 
   float   roll
 
   float   bank
 
   float   tilt
 
   float   psi
 
}; 
 

Static Public Attributes

static const Vector3f ZERO
 
static const Vector3f FORWARD
 
static const Vector3f UP
 

Detailed Description

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

Constructor & Destructor Documentation

constexpr radix::Vector3f::Vector3f ( )
inline
constexpr radix::Vector3f::Vector3f ( float  x,
float  y,
float  z 
)
inline
constexpr radix::Vector3f::Vector3f ( float  v)
inline
radix::Vector3f::Vector3f ( const btVector3 &  v)

Member Function Documentation

bool radix::Vector3f::fuzzyEqual ( const Vector3f v,
float  threshold = .02f 
) const
float radix::Vector3f::length ( ) const
radix::Vector3f::operator btVector3 ( ) const
constexpr bool radix::Vector3f::operator!= ( const Vector3f v) const
inline
constexpr Vector3f radix::Vector3f::operator* ( const Vector3f v) const
inline
constexpr Vector3f radix::Vector3f::operator* ( float  v) const
inline
Vector3f& radix::Vector3f::operator*= ( const Vector3f v)
inline
Vector3f& radix::Vector3f::operator*= ( float  v)
inline
constexpr Vector3f radix::Vector3f::operator+ ( const Vector3f v) const
inline
Vector3f& radix::Vector3f::operator+= ( const Vector3f v)
inline
constexpr Vector3f radix::Vector3f::operator- ( ) const
inline
constexpr Vector3f radix::Vector3f::operator- ( const Vector3f v) const
inline
Vector3f& radix::Vector3f::operator-= ( const Vector3f v)
inline
constexpr Vector3f radix::Vector3f::operator/ ( const Vector3f v) const
inline
constexpr Vector3f radix::Vector3f::operator/ ( float  v) const
inline
Vector3f& radix::Vector3f::operator/= ( const Vector3f v)
inline
Vector3f& radix::Vector3f::operator/= ( float  v)
inline
Vector3f & radix::Vector3f::operator= ( const btVector3 &  v)
constexpr bool radix::Vector3f::operator== ( const Vector3f v) const
inline
void radix::Vector3f::serialize ( serine::Archiver &  ar)
std::string radix::Vector3f::str ( ) const

Field Documentation

union { ... }
union { ... }
union { ... }
float radix::Vector3f::attitude
float radix::Vector3f::azimuth
float radix::Vector3f::b
float radix::Vector3f::bank
float radix::Vector3f::elevation
const Vector3f radix::Vector3f::FORWARD
static
float radix::Vector3f::g
float radix::Vector3f::heading
float radix::Vector3f::phi
float radix::Vector3f::pitch
float radix::Vector3f::psi
float radix::Vector3f::r
float radix::Vector3f::roll
float radix::Vector3f::s
float radix::Vector3f::t
float radix::Vector3f::tetha
float radix::Vector3f::tilt
float radix::Vector3f::u
const Vector3f radix::Vector3f::UP
static
float radix::Vector3f::x
float radix::Vector3f::y
float radix::Vector3f::yaw
float radix::Vector3f::z
const Vector3f radix::Vector3f::ZERO
static

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