tf2 rolling
tf2 maintains the relationship between coordinate frames in a tree structure buffered in time, and lets the user transform points, vectors, etc between any two coordinate frames at any desired point in time.
Loading...
Searching...
No Matches
tf2::QuadWord Class Reference

The QuadWord class is base class for Vector3 and Quaternion. Some issues under PS3 Linux with IBM 2.1 SDK, gcc compiler prevent from using aligned quadword. More...

#include <QuadWord.hpp>

Inheritance diagram for tf2::QuadWord:

Public Member Functions

const tf2ScalargetX () const
 Return the x value.
const tf2ScalargetY () const
 Return the y value.
const tf2ScalargetZ () const
 Return the z value.
void setX (tf2Scalar x)
 Set the x value.
void setY (tf2Scalar y)
 Set the y value.
void setZ (tf2Scalar z)
 Set the z value.
void setW (tf2Scalar w)
 Set the w value.
const tf2Scalarx () const
 Return the x value.
const tf2Scalary () const
 Return the y value.
const tf2Scalarz () const
 Return the z value.
const tf2Scalarw () const
 Return the w value.
 operator tf2Scalar * ()
 operator tf2Scalar*() replaces operator[], using implicit conversion. We added operator != and operator == to avoid pointer comparisons.
 operator const tf2Scalar * () const
bool operator== (const QuadWord &other) const
bool operator!= (const QuadWord &other) const
void setValue (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z)
 Set x,y,z and zero w.
void setValue (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z, const tf2Scalar &w)
 Set the values.
 QuadWord ()
 No initialization constructor.
 QuadWord (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z)
 Three argument constructor (zeros w).
 QuadWord (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z, const tf2Scalar &w)
 Initializing constructor.
void setMax (const QuadWord &other)
 Set each element to the max of the current values and the values of another QuadWord.
void setMin (const QuadWord &other)
 Set each element to the min of the current values and the values of another QuadWord.

Protected Attributes

tf2Scalar m_floats [4]

Detailed Description

The QuadWord class is base class for Vector3 and Quaternion. Some issues under PS3 Linux with IBM 2.1 SDK, gcc compiler prevent from using aligned quadword.

Constructor & Destructor Documentation

◆ QuadWord() [1/3]

tf2::QuadWord::QuadWord ( )
inline

No initialization constructor.

◆ QuadWord() [2/3]

tf2::QuadWord::QuadWord ( const tf2Scalar & x,
const tf2Scalar & y,
const tf2Scalar & z )
inline

Three argument constructor (zeros w).

Parameters
xValue of x
yValue of y
zValue of z

◆ QuadWord() [3/3]

tf2::QuadWord::QuadWord ( const tf2Scalar & x,
const tf2Scalar & y,
const tf2Scalar & z,
const tf2Scalar & w )
inline

Initializing constructor.

Parameters
xValue of x
yValue of y
zValue of z
wValue of w

Member Function Documentation

◆ getX()

const tf2Scalar & tf2::QuadWord::getX ( ) const
inline

Return the x value.

◆ getY()

const tf2Scalar & tf2::QuadWord::getY ( ) const
inline

Return the y value.

◆ getZ()

const tf2Scalar & tf2::QuadWord::getZ ( ) const
inline

Return the z value.

◆ setX()

void tf2::QuadWord::setX ( tf2Scalar x)
inline

Set the x value.

◆ setY()

void tf2::QuadWord::setY ( tf2Scalar y)
inline

Set the y value.

◆ setZ()

void tf2::QuadWord::setZ ( tf2Scalar z)
inline

Set the z value.

◆ setW()

void tf2::QuadWord::setW ( tf2Scalar w)
inline

Set the w value.

◆ x()

const tf2Scalar & tf2::QuadWord::x ( ) const
inline

Return the x value.

◆ y()

const tf2Scalar & tf2::QuadWord::y ( ) const
inline

Return the y value.

◆ z()

const tf2Scalar & tf2::QuadWord::z ( ) const
inline

Return the z value.

◆ w()

const tf2Scalar & tf2::QuadWord::w ( ) const
inline

Return the w value.

◆ operator tf2Scalar *()

tf2::QuadWord::operator tf2Scalar * ( )
inline

operator tf2Scalar*() replaces operator[], using implicit conversion. We added operator != and operator == to avoid pointer comparisons.

◆ operator const tf2Scalar *()

tf2::QuadWord::operator const tf2Scalar * ( ) const
inline

◆ operator==()

bool tf2::QuadWord::operator== ( const QuadWord & other) const
inline

◆ operator!=()

bool tf2::QuadWord::operator!= ( const QuadWord & other) const
inline

◆ setValue() [1/2]

void tf2::QuadWord::setValue ( const tf2Scalar & x,
const tf2Scalar & y,
const tf2Scalar & z )
inline

Set x,y,z and zero w.

Parameters
xValue of x
yValue of y
zValue of z

◆ setValue() [2/2]

void tf2::QuadWord::setValue ( const tf2Scalar & x,
const tf2Scalar & y,
const tf2Scalar & z,
const tf2Scalar & w )
inline

Set the values.

Parameters
xValue of x
yValue of y
zValue of z
wValue of w

◆ setMax()

void tf2::QuadWord::setMax ( const QuadWord & other)
inline

Set each element to the max of the current values and the values of another QuadWord.

Parameters
otherThe other QuadWord to compare with

◆ setMin()

void tf2::QuadWord::setMin ( const QuadWord & other)
inline

Set each element to the min of the current values and the values of another QuadWord.

Parameters
otherThe other QuadWord to compare with

Member Data Documentation

◆ m_floats

tf2Scalar tf2::QuadWord::m_floats[4]
protected

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