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[] (size_t i) const
Realoperator[] (size_t i)
Vector4 & operator= (const Vector4 &rkVector)
 Assigns the value of the other vector.

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


Friends

Vector4 operator * (Real fScalar, const Vector4 &rkVector)
_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 Real    fX,
Real    fY,
Real    fZ,
Real    fW
 

Definition at line 51 of file OgreVector4.h.

References Ogre::Real.

Ogre::Vector4::Vector4 Real    afCoordinate[4]
 

Definition at line 56 of file OgreVector4.h.

References Ogre::Real.

Ogre::Vector4::Vector4 int    afCoordinate[4]
 

Definition at line 64 of file OgreVector4.h.

Ogre::Vector4::Vector4 const Real *const    r
 

Definition at line 72 of file OgreVector4.h.

References Ogre::Real.

Ogre::Vector4::Vector4 const Vector4 &    rkVector
 

Definition at line 77 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 307 of file OgreVector4.h.

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

Referenced by Ogre::GLRenderSystem::_applyObliqueDepthProjection(), Ogre::D3D9RenderSystem::_applyObliqueDepthProjection(), Ogre::D3DRenderSystem::_applyObliqueDepthProjection(), Ogre::Light::_getFrustumClipVolumes(), Ogre::Light::_getNearClipVolume(), and Ogre::EdgeData::updateTriangleLightFacing().

Vector4 Ogre::Vector4::operator * const Vector4 &    rhs const
 

Definition at line 172 of file OgreVector4.h.

References w, x, y, and z.

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

Definition at line 160 of file OgreVector4.h.

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

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

Definition at line 266 of file OgreVector4.h.

References w, x, y, and z.

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

Definition at line 257 of file OgreVector4.h.

References Ogre::Real.

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

Definition at line 118 of file OgreVector4.h.

References w, x, y, and z.

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

Definition at line 136 of file OgreVector4.h.

References w, x, y, and z.

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

Definition at line 237 of file OgreVector4.h.

References w, x, y, and z.

Vector4 Ogre::Vector4::operator-   const
 

Definition at line 212 of file OgreVector4.h.

References w, x, y, and z.

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

Definition at line 148 of file OgreVector4.h.

References w, x, y, and z.

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

Definition at line 247 of file OgreVector4.h.

References w, x, y, and z.

Vector4 Ogre::Vector4::operator/ const Vector4 &    rhs const
 

Definition at line 199 of file OgreVector4.h.

References w, x, y, and z.

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

Definition at line 184 of file OgreVector4.h.

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

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

Definition at line 290 of file OgreVector4.h.

References w, x, y, and z.

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

Definition at line 276 of file OgreVector4.h.

References Ogre::Real.

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

Definition at line 126 of file OgreVector4.h.

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

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

Assigns the value of the other vector.

Parameters:
rkVector  The other vector

Definition at line 100 of file OgreVector4.h.

References w, x, y, and z.

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

Definition at line 110 of file OgreVector4.h.

References w, x, y, and z.

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

Definition at line 89 of file OgreVector4.h.

References Ogre::Real.

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

Definition at line 82 of file OgreVector4.h.

References Ogre::Real.


Friends And Related Function Documentation

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

Definition at line 224 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 314 of file OgreVector4.h.


Member Data Documentation

Real Ogre::Vector4::val[4]
 

Definition at line 43 of file OgreVector4.h.

Referenced by Ogre::GpuProgramParameters::setConstant(), and Ogre::GLRenderSystem::setGLLightPositionDirection().

Real Ogre::Vector4::w
 

Definition at line 41 of file OgreVector4.h.

Referenced by Ogre::GLRenderSystem::_applyObliqueDepthProjection(), Ogre::D3D9RenderSystem::_applyObliqueDepthProjection(), Ogre::D3DRenderSystem::_applyObliqueDepthProjection(), Ogre::Light::_getFrustumClipVolumes(), Ogre::Light::_getNearClipVolume(), Ogre::GpuProgramParameters::_updateAutoParamsLightsOnly(), dotProduct(), Ogre::ShadowCaster::extrudeBounds(), Ogre::ShadowCaster::extrudeVertices(), Ogre::Light::getAs4DVector(), operator *(), Ogre::operator *(), Ogre::Matrix4::operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), Ogre::GLRenderSystem::setGLClipPlanes(), and Ogre::GLRenderSystem::setGLLightPositionDirection().

Real Ogre::Vector4::x
 

Definition at line 41 of file OgreVector4.h.

Referenced by Ogre::GLRenderSystem::_applyObliqueDepthProjection(), Ogre::D3D9RenderSystem::_applyObliqueDepthProjection(), Ogre::D3DRenderSystem::_applyObliqueDepthProjection(), Ogre::Light::_getFrustumClipVolumes(), Ogre::Light::_getNearClipVolume(), Ogre::GpuProgramParameters::_updateAutoParamsLightsOnly(), dotProduct(), Ogre::ShadowCaster::extrudeBounds(), Ogre::ShadowCaster::extrudeVertices(), Ogre::SimpleSpline::interpolate(), operator *(), Ogre::operator *(), Ogre::Matrix4::operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), Ogre::MeshSerializerImpl::readEdgeList(), Ogre::GLRenderSystem::setGLClipPlanes(), Ogre::FloatGpuParameterControllerValue::setValue(), and Ogre::MeshSerializerImpl::writeEdgeList().

Real Ogre::Vector4::y
 

Definition at line 41 of file OgreVector4.h.

Referenced by Ogre::GLRenderSystem::_applyObliqueDepthProjection(), Ogre::D3D9RenderSystem::_applyObliqueDepthProjection(), Ogre::D3DRenderSystem::_applyObliqueDepthProjection(), Ogre::Light::_getFrustumClipVolumes(), Ogre::Light::_getNearClipVolume(), Ogre::GpuProgramParameters::_updateAutoParamsLightsOnly(), dotProduct(), Ogre::ShadowCaster::extrudeBounds(), Ogre::ShadowCaster::extrudeVertices(), Ogre::SimpleSpline::interpolate(), operator *(), Ogre::operator *(), Ogre::Matrix4::operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), and Ogre::GLRenderSystem::setGLClipPlanes().

Real Ogre::Vector4::z
 

Definition at line 41 of file OgreVector4.h.

Referenced by Ogre::GLRenderSystem::_applyObliqueDepthProjection(), Ogre::D3D9RenderSystem::_applyObliqueDepthProjection(), Ogre::D3DRenderSystem::_applyObliqueDepthProjection(), Ogre::Light::_getFrustumClipVolumes(), Ogre::Light::_getNearClipVolume(), Ogre::GpuProgramParameters::_updateAutoParamsLightsOnly(), dotProduct(), Ogre::ShadowCaster::extrudeBounds(), Ogre::ShadowCaster::extrudeVertices(), Ogre::SimpleSpline::interpolate(), operator *(), Ogre::operator *(), Ogre::Matrix4::operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), and Ogre::GLRenderSystem::setGLClipPlanes().


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

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:46 2004