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
Public Member Functions | List of all members
tf2::tf2Vector4 Class Reference

#include <Vector3.hpp>

Inheritance diagram for tf2::tf2Vector4:
Inheritance graph
[legend]
Collaboration diagram for tf2::tf2Vector4:
Collaboration graph
[legend]

Public Member Functions

 tf2Vector4 ()
 
 tf2Vector4 (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z, const tf2Scalar &w)
 
tf2Vector4 absolute4 () const
 
tf2Scalar getW () const
 
int maxAxis4 () const
 
int minAxis4 () const
 
int closestAxis4 () const
 
void setValue (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z, const tf2Scalar &w)
 Set the values.
 
- Public Member Functions inherited from tf2::Vector3
 Vector3 ()
 No initialization constructor.
 
 Vector3 (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z)
 Constructor from scalars.
 
Vector3operator+= (const Vector3 &v)
 Add a vector to this one.
 
Vector3operator-= (const Vector3 &v)
 Subtract a vector from this one.
 
Vector3operator*= (const tf2Scalar &s)
 Scale the vector.
 
Vector3operator/= (const tf2Scalar &s)
 Inversely scale the vector.
 
tf2Scalar dot (const Vector3 &v) const
 Return the dot product.
 
tf2Scalar length2 () const
 Return the length of the vector squared.
 
tf2Scalar length () const
 Return the length of the vector.
 
tf2Scalar distance2 (const Vector3 &v) const
 Return the distance squared between the ends of this and another vector This is semantically treating the vector like a point.
 
tf2Scalar distance (const Vector3 &v) const
 Return the distance between the ends of this and another vector This is semantically treating the vector like a point.
 
Vector3normalize ()
 Normalize this vector x^2 + y^2 + z^2 = 1.
 
Vector3 normalized () const
 Return a normalized version of this vector.
 
Vector3 rotate (const Vector3 &wAxis, const tf2Scalar angle) const
 Rotate this vector.
 
tf2Scalar angle (const Vector3 &v) const
 Return the angle between this and another vector.
 
Vector3 absolute () const
 Return a vector will the absolute values of each element.
 
Vector3 cross (const Vector3 &v) const
 Return the cross product between this and another vector.
 
tf2Scalar triple (const Vector3 &v1, const Vector3 &v2) const
 
int minAxis () const
 Return the axis with the smallest value Note return values are 0,1,2 for x, y, or z.
 
int maxAxis () const
 Return the axis with the largest value Note return values are 0,1,2 for x, y, or z.
 
int furthestAxis () const
 
int closestAxis () const
 
void setInterpolate3 (const Vector3 &v0, const Vector3 &v1, tf2Scalar rt)
 
Vector3 lerp (const Vector3 &v, const tf2Scalar &t) const
 Return the linear interpolation between this and another vector.
 
Vector3operator*= (const Vector3 &v)
 Elementwise multiply this vector by the other.
 
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 Vector3 &other) const
 
bool operator!= (const Vector3 &other) const
 
void setMax (const Vector3 &other)
 Set each element to the max of the current values and the values of another Vector3.
 
void setMin (const Vector3 &other)
 Set each element to the min of the current values and the values of another Vector3.
 
void setValue (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z)
 
void getSkewSymmetricMatrix (Vector3 *v0, Vector3 *v1, Vector3 *v2) const
 
void setZero ()
 
bool isZero () const
 
bool fuzzyZero () const
 
bool isnan () const
 
void serialize (struct Vector3Data &dataOut) const
 
void deSerialize (const struct Vector3Data &dataIn)
 
void serializeFloat (struct Vector3FloatData &dataOut) const
 
void deSerializeFloat (const struct Vector3FloatData &dataIn)
 
void serializeDouble (struct Vector3DoubleData &dataOut) const
 
void deSerializeDouble (const struct Vector3DoubleData &dataIn)
 

Additional Inherited Members

- Public Attributes inherited from tf2::Vector3
tf2Scalar m_floats [4]
 

Constructor & Destructor Documentation

◆ tf2Vector4() [1/2]

tf2::tf2Vector4::tf2Vector4 ( )
inline

◆ tf2Vector4() [2/2]

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

Member Function Documentation

◆ absolute4()

tf2Vector4 tf2::tf2Vector4::absolute4 ( ) const
inline

◆ getW()

tf2Scalar tf2::tf2Vector4::getW ( ) const
inline

◆ maxAxis4()

int tf2::tf2Vector4::maxAxis4 ( ) const
inline

◆ minAxis4()

int tf2::tf2Vector4::minAxis4 ( ) const
inline

◆ closestAxis4()

int tf2::tf2Vector4::closestAxis4 ( ) const
inline

◆ setValue()

void tf2::tf2Vector4::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

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