Implements 4-dimensional vectors.
More...
#include <D:/Projekte/i6engine/libs/i6engine-math/include/i6engine/math/i6eVector4.h>
Implements 4-dimensional vectors.
Implements 4-dimensional vectors. Conversion of vectors from Ogre and Bullet possible.
Definition at line 56 of file i6eVector4.h.
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
-
i6e::math::i6eVector4::i6eVector4 |
( |
const btVector4 & |
bullet | ) |
|
|
explicit |
Copy constructor with vector from Bullet.
- Parameters
-
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.
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 |
double i6e::math::i6eVector4::getY |
( |
| ) |
const |
|
inline |
double i6e::math::i6eVector4::getZ |
( |
| ) |
const |
|
inline |
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 |
bool i6e::math::i6eVector4::operator== |
( |
const i6eVector4 & |
b | ) |
const |
|
inline |
template<class Archive >
void i6e::math::i6eVector4::serialize |
( |
Archive & |
ar, |
|
|
const unsigned |
int |
|
) |
| |
|
inline |
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 |
void i6e::math::i6eVector4::setY |
( |
const double |
y | ) |
|
|
inline |
void i6e::math::i6eVector4::setZ |
( |
const double |
z | ) |
|
|
inline |
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: