Public Member Functions | Private Attributes | Friends
karto::Vector4< T > Class Template Reference

#include <Geometry.h>

List of all members.

Public Member Functions

const T & GetW () const
const T & GetX () const
const T & GetY () const
const T & GetZ () const
kt_bool operator!= (const Vector4 &rOther) const
kt_bool operator< (const Vector4 &rOther) const
Vector4operator= (const Vector4 &rOther)
kt_bool operator== (const Vector4 &rOther) const
void SetW (const T &w)
void SetX (const T &x)
void SetY (const T &y)
void SetZ (const T &z)
const String ToString () const
 Vector4 ()
 Vector4 (T x, T y, T z, T w)
 Vector4 (const Vector4 &rOther)

Private Attributes

m_Values [4]

Friends

KARTO_FORCEINLINE std::ostream & operator<< (std::ostream &rStream, const Vector4 &rVector)

Detailed Description

template<typename T>
class karto::Vector4< T >

Represents a 4-dimensional vector (x, y, z, w)

Definition at line 1056 of file Geometry.h.


Constructor & Destructor Documentation

template<typename T>
karto::Vector4< T >::Vector4 ( ) [inline]

Vector at the origin

Definition at line 1062 of file Geometry.h.

template<typename T>
karto::Vector4< T >::Vector4 ( x,
y,
z,
w 
) [inline]

Vector at the given location

Parameters:
xx
yy
zz
ww

Definition at line 1077 of file Geometry.h.

template<typename T>
karto::Vector4< T >::Vector4 ( const Vector4< T > &  rOther) [inline]

Copy constructor

Definition at line 1088 of file Geometry.h.


Member Function Documentation

template<typename T>
const T& karto::Vector4< T >::GetW ( ) const [inline]

Gets the w-component of this vector

Returns:
w-component

Definition at line 1155 of file Geometry.h.

template<typename T>
const T& karto::Vector4< T >::GetX ( ) const [inline]

Gets the x-component of this vector

Returns:
x-component

Definition at line 1101 of file Geometry.h.

template<typename T>
const T& karto::Vector4< T >::GetY ( ) const [inline]

Gets the y-component of this vector

Returns:
y-component

Definition at line 1119 of file Geometry.h.

template<typename T>
const T& karto::Vector4< T >::GetZ ( ) const [inline]

Gets the z-component of this vector

Returns:
z-component

Definition at line 1137 of file Geometry.h.

template<typename T>
kt_bool karto::Vector4< T >::operator!= ( const Vector4< T > &  rOther) const [inline]

Inequality operator

Definition at line 1249 of file Geometry.h.

template<typename T>
kt_bool karto::Vector4< T >::operator< ( const Vector4< T > &  rOther) const [inline]

Less than operator

Parameters:
rOthervector
Returns:
true if left vector is 'less' than right vector by comparing corresponding x coordinates, then corresponding y coordinates, then corresponding z coordinates, and then corresponding w coordinates

Definition at line 1206 of file Geometry.h.

template<typename T>
Vector4& karto::Vector4< T >::operator= ( const Vector4< T > &  rOther) [inline]

Assignment operator

Definition at line 1190 of file Geometry.h.

template<typename T>
kt_bool karto::Vector4< T >::operator== ( const Vector4< T > &  rOther) const [inline]

Equality operator

Definition at line 1241 of file Geometry.h.

template<typename T>
void karto::Vector4< T >::SetW ( const T &  w) [inline]

Sets the w-component of this vector

Parameters:
ww

Definition at line 1164 of file Geometry.h.

template<typename T>
void karto::Vector4< T >::SetX ( const T &  x) [inline]

Sets the x-component of this vector

Parameters:
xx

Definition at line 1110 of file Geometry.h.

template<typename T>
void karto::Vector4< T >::SetY ( const T &  y) [inline]

Sets the y-component of this vector

Parameters:
yy

Definition at line 1128 of file Geometry.h.

template<typename T>
void karto::Vector4< T >::SetZ ( const T &  z) [inline]

Sets the z-component of this vector

Parameters:
zz

Definition at line 1146 of file Geometry.h.

template<typename T>
const String karto::Vector4< T >::ToString ( ) const [inline]

Returns a string representation of this vector

Returns:
string representation of this vector

Definition at line 1173 of file Geometry.h.


Friends And Related Function Documentation

template<typename T>
KARTO_FORCEINLINE std::ostream& operator<< ( std::ostream &  rStream,
const Vector4< T > &  rVector 
) [friend]

Write vector onto output stream

Definition at line 1257 of file Geometry.h.


Member Data Documentation

template<typename T>
T karto::Vector4< T >::m_Values[4] [private]

Definition at line 1264 of file Geometry.h.


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


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Thu Aug 27 2015 14:07:26