Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Ogre::Vector4 Class Reference

4-dimensional homogenous vector. More...

#include <OgreVector4.h>

List of all members.

Public Methods

 Vector4 ()
 Vector4 (Real fX, Real fY, Real fZ, Real fW)
 Vector4 (Real afCoordinate[4])
 Vector4 (int afCoordinate[4])
 Vector4 (const Real *const r)
 Vector4 (const Vector4 &rkVector)
Real operator[] (unsigned i) const
Real & operator[] (unsigned i)
Vector4 & operator= (const Vector4 &rkVector)
 Assigns the value of the other vector. More...

bool operator== (const Vector4 &rkVector) const
bool operator!= (const Vector4 &rkVector) const
Vector4 & operator= (const Vector3 &rhs)
Vector4 operator * (const Matrix4 &mat)

Public Attributes

Real x
Real y
Real z
Real w

Friends

_OgreExport friend std::ostream & operator<< (std::ostream &o, const Vector4 &v)
 Function for writing to a stream. More...


Detailed Description

4-dimensional homogenous vector.


Constructor & Destructor Documentation

Ogre::Vector4::Vector4 (    )  [inline]
 

Ogre::Vector4::Vector4 (  Real    fX,
Real    fY,
Real    fZ,
Real    fW
)  [inline]
 

Ogre::Vector4::Vector4 (  Real    afCoordinate[4] )  [inline]
 

Ogre::Vector4::Vector4 (  int    afCoordinate[4] )  [inline]
 

Ogre::Vector4::Vector4 (  const Real *const    r )  [inline]
 

Ogre::Vector4::Vector4 (  const Vector4 &    rkVector )  [inline]
 


Member Function Documentation

Vector4 Ogre::Vector4::operator * (  const Matrix4 &    mat )  [inline]
 

bool Ogre::Vector4::operator!= (  const Vector4 &    rkVector )  const [inline]
 

Vector4& Ogre::Vector4::operator= (  const Vector3 &    rhs )  [inline]
 

Vector4& Ogre::Vector4::operator= (  const Vector4 &    rkVector )  [inline]
 

Assigns the value of the other vector.

Parameters:
rkVector  The other vector

bool Ogre::Vector4::operator== (  const Vector4 &    rkVector )  const [inline]
 

Real& Ogre::Vector4::operator[] (  unsigned    i )  [inline]
 

Real Ogre::Vector4::operator[] (  unsigned    i )  const [inline]
 


Friends And Related Function Documentation

_OgreExport friend std::ostream& operator<< (  std::ostream &    o,
const Vector4 &    v
)  [friend]
 

Function for writing to a stream.


Member Data Documentation

Real Ogre::Vector4::w
 

Real Ogre::Vector4::x
 

Real Ogre::Vector4::y
 

Real Ogre::Vector4::z
 

Copyright © 2002 by The OGRE Team