i6engine  1.0
i6e::math::i6eVector4 Class Reference

Implements 4-dimensional vectors. More...

#include <D:/Projekte/i6engine/libs/i6engine-math/include/i6engine/math/i6eVector4.h>

Public Member Functions

 i6eVector4 ()
 Creates a new vector with all values set to 0. More...
 
 i6eVector4 (const double w, const double x, const double y, const double z)
 Creates a new vector with all values set to the given values. More...
 
 i6eVector4 (const Ogre::Vector4 &ogre)
 Copy constructor with vector from Ogre. More...
 
 i6eVector4 (const btVector4 &bullet)
 Copy constructor with vector from Bullet. More...
 
 i6eVector4 (const std::map< std::string, std::string > &params, const std::string &prefix)
 
 i6eVector4 (const std::string &str)
 
 ~i6eVector4 ()
 Empty. More...
 
double getW () const
 getters for the values of the Vector More...
 
double getX () const
 
double getY () const
 
double getZ () const
 
void setW (const double w)
 setters for the values of the Vector More...
 
void setX (const double x)
 
void setY (const double y)
 
void setZ (const double z)
 
i6eVector4 operator+ (const i6eVector4 &other) const
 
  • operator
More...
 
i6eVector4 operator- (const i6eVector4 &other) const
 
  • operator
More...
 
i6eVector4 operator* (double d) const
 
  • operator
More...
 
bool operator== (const i6eVector4 &b) const
 Operator '==' for Vector4. More...
 
bool operator!= (const i6eVector4 &other) const
 Operator '!=' for Vector4 calls == and negatiates result. More...
 
Ogre::Vector4 toOgre () const
 Convert whole vector to Ogre. More...
 
btVector4 toBullet () const
 Convert whole vector to Bullet. More...
 
void insertInMap (const std::string &prefix, std::map< std::string, std::string > &map) const
 inserts this vector into an attributeMap using the given prefix More...
 
std::string toString () const
 returns string representation of Vec4 More...
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 serializer for the vector More...
 

Detailed Description

Implements 4-dimensional vectors.

Implements 4-dimensional vectors. Conversion of vectors from Ogre and Bullet possible.

Definition at line 56 of file i6eVector4.h.

Constructor & Destructor Documentation

i6e::math::i6eVector4::i6eVector4 ( )
inline

Creates a new vector with all values set to 0.

Definition at line 63 of file i6eVector4.h.

i6e::math::i6eVector4::i6eVector4 ( const double  w,
const double  x,
const double  y,
const double  z 
)
inline

Creates a new vector with all values set to the given values.

Definition at line 69 of file i6eVector4.h.

i6e::math::i6eVector4::i6eVector4 ( const Ogre::Vector4 &  ogre)
explicit

Copy constructor with vector from Ogre.

Parameters
[in]ogreVector to copy
i6e::math::i6eVector4::i6eVector4 ( const btVector4 &  bullet)
explicit

Copy constructor with vector from Bullet.

Parameters
[in]bulletVector to copy
i6e::math::i6eVector4::i6eVector4 ( const std::map< std::string, std::string > &  params,
const std::string &  prefix 
)
i6e::math::i6eVector4::i6eVector4 ( const std::string &  str)
explicit
i6e::math::i6eVector4::~i6eVector4 ( )
inline

Empty.

Nothing to do right now, should free memory

Definition at line 104 of file i6eVector4.h.

Member Function Documentation

double i6e::math::i6eVector4::getW ( ) const
inline

getters for the values of the Vector

Definition at line 110 of file i6eVector4.h.

double i6e::math::i6eVector4::getX ( ) const
inline

Definition at line 113 of file i6eVector4.h.

double i6e::math::i6eVector4::getY ( ) const
inline

Definition at line 116 of file i6eVector4.h.

double i6e::math::i6eVector4::getZ ( ) const
inline

Definition at line 119 of file i6eVector4.h.

void i6e::math::i6eVector4::insertInMap ( const std::string &  prefix,
std::map< std::string, std::string > &  map 
) const

inserts this vector into an attributeMap using the given prefix

bool i6e::math::i6eVector4::operator!= ( const i6eVector4 other) const
inline

Operator '!=' for Vector4 calls == and negatiates result.

Definition at line 170 of file i6eVector4.h.

i6eVector4 i6e::math::i6eVector4::operator* ( double  d) const
inline

  • operator

Definition at line 156 of file i6eVector4.h.

i6eVector4 i6e::math::i6eVector4::operator+ ( const i6eVector4 other) const
inline

  • operator

Definition at line 142 of file i6eVector4.h.

i6eVector4 i6e::math::i6eVector4::operator- ( const i6eVector4 other) const
inline

  • operator

Definition at line 149 of file i6eVector4.h.

bool i6e::math::i6eVector4::operator== ( const i6eVector4 b) const
inline

Operator '==' for Vector4.

Definition at line 163 of file i6eVector4.h.

template<class Archive >
void i6e::math::i6eVector4::serialize ( Archive &  ar,
const unsigned  int 
)
inline

serializer for the vector

Definition at line 202 of file i6eVector4.h.

void i6e::math::i6eVector4::setW ( const double  w)
inline

setters for the values of the Vector

Definition at line 126 of file i6eVector4.h.

void i6e::math::i6eVector4::setX ( const double  x)
inline

Definition at line 129 of file i6eVector4.h.

void i6e::math::i6eVector4::setY ( const double  y)
inline

Definition at line 132 of file i6eVector4.h.

void i6e::math::i6eVector4::setZ ( const double  z)
inline

Definition at line 135 of file i6eVector4.h.

btVector4 i6e::math::i6eVector4::toBullet ( ) const

Convert whole vector to Bullet.

Returns
Vector converted to Bullet
Ogre::Vector4 i6e::math::i6eVector4::toOgre ( ) const

Convert whole vector to Ogre.

Returns
Vector converted to Ogre
std::string i6e::math::i6eVector4::toString ( ) const

returns string representation of Vec4


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