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
radix::Vector4f Class Reference

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

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

Inherits Serializable.

Inherited by radix::Quaternion.

Public Member Functions

constexpr Vector4f ()
 
constexpr Vector4f (float x, float y, float z, float w)
 
constexpr Vector4f (float v)
 
 Vector4f (const Vector3f &, float w)
 
 Vector4f (const Vector2f &, float z, float w)
 
void serialize (serine::Archiver &)
 
constexpr Vector4f operator- () const
 
constexpr Vector4f operator* (const Vector4f &v) const
 
Vector4foperator*= (const Vector4f &v)
 
constexpr Vector4f operator* (float v) const
 
Vector4foperator*= (float v)
 
constexpr Vector4f operator/ (const Vector4f &v) const
 
Vector4foperator/= (const Vector4f &v)
 
constexpr Vector4f operator/ (float v) const
 
Vector4foperator/= (float v)
 
constexpr Vector4f operator+ (const Vector4f &v) const
 
Vector4foperator+= (const Vector4f &v)
 
constexpr Vector4f operator- (const Vector4f &v) const
 
Vector4foperator-= (const Vector4f &v)
 
bool fuzzyEqual (const Vector4f &, float threshold=.01f) const
 
std::string toString () const
 
 operator btVector4 () const
 
 Vector4f (const btVector4 &)
 
Vector4foperator= (const btVector4 &)
 
 operator btQuaternion () const
 
 Vector4f (const btQuaternion &)
 
Vector4foperator= (const btQuaternion &)
 

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
 
}; 
 
union {
   float   w
 
   float   a
 
   float   v
 
   float   d
 
}; 
 

Detailed Description

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

Constructor & Destructor Documentation

constexpr radix::Vector4f::Vector4f ( )
inline
constexpr radix::Vector4f::Vector4f ( float  x,
float  y,
float  z,
float  w 
)
inline
constexpr radix::Vector4f::Vector4f ( float  v)
inline
radix::Vector4f::Vector4f ( const Vector3f v,
float  w 
)
radix::Vector4f::Vector4f ( const Vector2f v,
float  z,
float  w 
)
radix::Vector4f::Vector4f ( const btVector4 &  v)
radix::Vector4f::Vector4f ( const btQuaternion &  q)

Member Function Documentation

bool radix::Vector4f::fuzzyEqual ( const Vector4f v,
float  threshold = .01f 
) const
radix::Vector4f::operator btQuaternion ( ) const
radix::Vector4f::operator btVector4 ( ) const
constexpr Vector4f radix::Vector4f::operator* ( const Vector4f v) const
inline
constexpr Vector4f radix::Vector4f::operator* ( float  v) const
inline
Vector4f& radix::Vector4f::operator*= ( const Vector4f v)
inline
Vector4f& radix::Vector4f::operator*= ( float  v)
inline
constexpr Vector4f radix::Vector4f::operator+ ( const Vector4f v) const
inline
Vector4f& radix::Vector4f::operator+= ( const Vector4f v)
inline
constexpr Vector4f radix::Vector4f::operator- ( ) const
inline
constexpr Vector4f radix::Vector4f::operator- ( const Vector4f v) const
inline
Vector4f& radix::Vector4f::operator-= ( const Vector4f v)
inline
constexpr Vector4f radix::Vector4f::operator/ ( const Vector4f v) const
inline
constexpr Vector4f radix::Vector4f::operator/ ( float  v) const
inline
Vector4f& radix::Vector4f::operator/= ( const Vector4f v)
inline
Vector4f& radix::Vector4f::operator/= ( float  v)
inline
Vector4f & radix::Vector4f::operator= ( const btVector4 &  v)
Vector4f & radix::Vector4f::operator= ( const btQuaternion &  q)
void radix::Vector4f::serialize ( serine::Archiver &  ar)
std::string radix::Vector4f::toString ( ) const
inline

Field Documentation

union { ... }
union { ... }
union { ... }
union { ... }
float radix::Vector4f::a
float radix::Vector4f::attitude
float radix::Vector4f::azimuth
float radix::Vector4f::b
float radix::Vector4f::bank
float radix::Vector4f::d
float radix::Vector4f::elevation
float radix::Vector4f::g
float radix::Vector4f::heading
float radix::Vector4f::phi
float radix::Vector4f::pitch
float radix::Vector4f::psi
float radix::Vector4f::r
float radix::Vector4f::roll
float radix::Vector4f::s
float radix::Vector4f::t
float radix::Vector4f::tetha
float radix::Vector4f::tilt
float radix::Vector4f::u
float radix::Vector4f::v
float radix::Vector4f::w
float radix::Vector4f::x
float radix::Vector4f::y
float radix::Vector4f::yaw
float radix::Vector4f::z

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