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

Ogre::Vector4 Class Reference

4-dimensional homogenous vector. More...

#include <OgreVector4.h>

List of all members.

Public Member Functions

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

Vector4operator= (const Real fScalar)
bool operator== (const Vector4 &rkVector) const
bool operator!= (const Vector4 &rkVector) const
Vector4operator= (const Vector3 &rhs)
Vector4 operator+ (const Vector4 &rkVector) const
Vector4 operator- (const Vector4 &rkVector) const
Vector4 operator * (const Real fScalar) const
Vector4 operator * (const Vector4 &rhs) const
Vector4 operator/ (const Real fScalar) const
Vector4 operator/ (const Vector4 &rhs) const
Vector4 operator- () const
Vector4operator+= (const Vector4 &rkVector)
Vector4operator-= (const Vector4 &rkVector)
Vector4operator *= (const Real fScalar)
Vector4operator+= (const Real fScalar)
Vector4operator-= (const Real fScalar)
Vector4operator *= (const Vector4 &rkVector)
Vector4operator/= (const Real fScalar)
Vector4operator/= (const Vector4 &rkVector)
Real dotProduct (const Vector4 &vec) const
 Calculates the dot (scalar) product of this vector with another.


Static Public Attributes

const Vector4 ZERO

Friends

Vector4 operator * (const Real fScalar, const Vector4 &rkVector)
Vector4 operator+ (const Vector4 &lhs, const Real rhs)
Vector4 operator+ (const Real lhs, const Vector4 &rhs)
Vector4 operator- (const Vector4 &lhs, Real rhs)
Vector4 operator- (const Real lhs, const Vector4 &rhs)
_OgreExport friend std::ostream & operator<< (std::ostream &o, const Vector4 &v)
 Function for writing to a stream.


Detailed Description

4-dimensional homogenous vector.

Definition at line 36 of file OgreVector4.h.


Constructor & Destructor Documentation

Ogre::Vector4::Vector4  ) 
 

Definition at line 47 of file OgreVector4.h.

Ogre::Vector4::Vector4 const Real  fX,
const Real  fY,
const Real  fZ,
const Real  fW
 

Definition at line 51 of file OgreVector4.h.

References Ogre::Real.

Ogre::Vector4::Vector4 const Real  afCoordinate[4]  )  [explicit]
 

Definition at line 56 of file OgreVector4.h.

References Ogre::Real.

Ogre::Vector4::Vector4 const int  afCoordinate[4]  )  [explicit]
 

Definition at line 64 of file OgreVector4.h.

References Ogre::Real.

Ogre::Vector4::Vector4 Real *const  r  )  [explicit]
 

Definition at line 72 of file OgreVector4.h.

References Ogre::Real.

Ogre::Vector4::Vector4 const Real  scaler  )  [explicit]
 

Definition at line 77 of file OgreVector4.h.

References Ogre::Real.

Ogre::Vector4::Vector4 const Vector4 rkVector  ) 
 

Definition at line 85 of file OgreVector4.h.


Member Function Documentation

Real Ogre::Vector4::dotProduct const Vector4 vec  )  const
 

Calculates the dot (scalar) product of this vector with another.

Parameters:
vec Vector with which to calculate the dot product (together with this one).
Returns:
A float representing the dot product value.

Definition at line 370 of file OgreVector4.h.

References Ogre::Real, w, x, y, and z.

Vector4 Ogre::Vector4::operator * const Vector4 rhs  )  const
 

Definition at line 189 of file OgreVector4.h.

References w, x, y, and z.

Vector4 Ogre::Vector4::operator * const Real  fScalar  )  const
 

Definition at line 177 of file OgreVector4.h.

References Ogre::Real, w, x, y, and z.

Vector4& Ogre::Vector4::operator *= const Vector4 rkVector  ) 
 

Definition at line 329 of file OgreVector4.h.

References w, x, y, and z.

Vector4& Ogre::Vector4::operator *= const Real  fScalar  ) 
 

Definition at line 302 of file OgreVector4.h.

References Ogre::Real.

bool Ogre::Vector4::operator!= const Vector4 rkVector  )  const
 

Definition at line 135 of file OgreVector4.h.

References w, x, y, and z.

Vector4 Ogre::Vector4::operator+ const Vector4 rkVector  )  const
 

Definition at line 153 of file OgreVector4.h.

References w, x, y, and z.

Vector4& Ogre::Vector4::operator+= const Real  fScalar  ) 
 

Definition at line 311 of file OgreVector4.h.

References Ogre::Real.

Vector4& Ogre::Vector4::operator+= const Vector4 rkVector  ) 
 

Definition at line 282 of file OgreVector4.h.

References w, x, y, and z.

Vector4 Ogre::Vector4::operator-  )  const
 

Definition at line 229 of file OgreVector4.h.

References w, x, y, and z.

Vector4 Ogre::Vector4::operator- const Vector4 rkVector  )  const
 

Definition at line 165 of file OgreVector4.h.

References w, x, y, and z.

Vector4& Ogre::Vector4::operator-= const Real  fScalar  ) 
 

Definition at line 320 of file OgreVector4.h.

References Ogre::Real.

Vector4& Ogre::Vector4::operator-= const Vector4 rkVector  ) 
 

Definition at line 292 of file OgreVector4.h.

References w, x, y, and z.

Vector4 Ogre::Vector4::operator/ const Vector4 rhs  )  const
 

Definition at line 216 of file OgreVector4.h.

References w, x, y, and z.

Vector4 Ogre::Vector4::operator/ const Real  fScalar  )  const
 

Definition at line 201 of file OgreVector4.h.

References Ogre::Real, w, x, y, and z.

Vector4& Ogre::Vector4::operator/= const Vector4 rkVector  ) 
 

Definition at line 353 of file OgreVector4.h.

References w, x, y, and z.

Vector4& Ogre::Vector4::operator/= const Real  fScalar  ) 
 

Definition at line 339 of file OgreVector4.h.

References Ogre::Real.

Vector4& Ogre::Vector4::operator= const Vector3 rhs  ) 
 

Definition at line 143 of file OgreVector4.h.

References Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z.

Vector4& Ogre::Vector4::operator= const Real  fScalar  ) 
 

Definition at line 118 of file OgreVector4.h.

References Ogre::Real.

Vector4& Ogre::Vector4::operator= const Vector4 rkVector  ) 
 

Assigns the value of the other vector.

Parameters:
rkVector The other vector

Definition at line 108 of file OgreVector4.h.

References w, x, y, and z.

bool Ogre::Vector4::operator== const Vector4 rkVector  )  const
 

Definition at line 127 of file OgreVector4.h.

References w, x, y, and z.

Real& Ogre::Vector4::operator[] const size_t  i  ) 
 

Definition at line 97 of file OgreVector4.h.

References Ogre::Real.

Real Ogre::Vector4::operator[] const size_t  i  )  const
 

Definition at line 90 of file OgreVector4.h.

References Ogre::Real.


Friends And Related Function Documentation

Vector4 operator * const Real  fScalar,
const Vector4 rkVector
[friend]
 

Definition at line 241 of file OgreVector4.h.

Vector4 operator+ const Real  lhs,
const Vector4 rhs
[friend]
 

Definition at line 260 of file OgreVector4.h.

Vector4 operator+ const Vector4 lhs,
const Real  rhs
[friend]
 

Definition at line 253 of file OgreVector4.h.

Vector4 operator- const Real  lhs,
const Vector4 rhs
[friend]
 

Definition at line 274 of file OgreVector4.h.

Vector4 operator- const Vector4 lhs,
Real  rhs
[friend]
 

Definition at line 267 of file OgreVector4.h.

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

Function for writing to a stream.

Definition at line 377 of file OgreVector4.h.


Member Data Documentation

Real Ogre::Vector4::val[4]
 

Definition at line 43 of file OgreVector4.h.

Referenced by Ogre::AnimableValue::setAsBaseValue().

Real Ogre::Vector4::w
 

Definition at line 41 of file OgreVector4.h.

Referenced by dotProduct(), operator *(), Ogre::operator *(), Ogre::Matrix4::operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), and operator==().

Real Ogre::Vector4::x
 

Definition at line 41 of file OgreVector4.h.

Referenced by dotProduct(), operator *(), Ogre::operator *(), Ogre::Matrix4::operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), and operator==().

Real Ogre::Vector4::y
 

Definition at line 41 of file OgreVector4.h.

Referenced by dotProduct(), operator *(), Ogre::operator *(), Ogre::Matrix4::operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), and operator==().

Real Ogre::Vector4::z
 

Definition at line 41 of file OgreVector4.h.

Referenced by dotProduct(), operator *(), Ogre::operator *(), Ogre::Matrix4::operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), and operator==().

const Vector4 Ogre::Vector4::ZERO [static]
 

Definition at line 383 of file OgreVector4.h.


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

Copyright © 2000-2005 by The OGRE Team
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:45:59 2006