OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::ArrayVector3 Class Reference

Cache-friendly array of 3-dimensional represented as a SoA array. More...

#include <OgreArrayVector3.h>

+ Collaboration diagram for Ogre::ArrayVector3:

Public Member Functions

 ArrayVector3 ()
 
 ArrayVector3 ()
 
 ArrayVector3 ()
 
 ArrayVector3 (ArrayReal chunkX, ArrayReal chunkY, ArrayReal chunkZ)
 
 ArrayVector3 (ArrayReal chunkX, ArrayReal chunkY, ArrayReal chunkZ)
 
 ArrayVector3 (ArrayReal chunkX, ArrayReal chunkY, ArrayReal chunkZ)
 
ArrayReal absDotProduct (const ArrayVector3 &vec) const
 Calculates the absolute dot (scalar) product of this vector with another. More...
 
ArrayReal absDotProduct (const ArrayVector3 &vec) const
 Calculates the absolute dot (scalar) product of this vector with another. More...
 
ArrayReal absDotProduct (const ArrayVector3 &vec) const
 Calculates the absolute dot (scalar) product of this vector with another. More...
 
void Cmov4 (ArrayMaskR mask, const ArrayVector3 &replacement)
 Conditional move update. More...
 
void Cmov4 (ArrayMaskR mask, const ArrayVector3 &replacement)
 Conditional move update. More...
 
void Cmov4 (ArrayMaskR mask, const ArrayVector3 &replacement)
 Conditional move update. More...
 
void CmovRobust (ArrayMaskR mask, const ArrayVector3 &replacement)
 Conditional move update. More...
 
void CmovRobust (ArrayMaskR mask, const ArrayVector3 &replacement)
 Conditional move update. More...
 
void CmovRobust (ArrayMaskR mask, const ArrayVector3 &replacement)
 Conditional move update. More...
 
Vector3 collapseMax (void) const
 Takes each Vector and returns one returns a single vector. More...
 
Vector3 collapseMax (void) const
 Takes each Vector and returns one returns a single vector. More...
 
Vector3 collapseMax (void) const
 Takes each Vector and returns one returns a single vector. More...
 
Vector3 collapseMin (void) const
 Takes each Vector and returns one returns a single vector. More...
 
Vector3 collapseMin (void) const
 Takes each Vector and returns one returns a single vector. More...
 
Vector3 collapseMin (void) const
 Takes each Vector and returns one returns a single vector. More...
 
ArrayVector3 crossProduct (const ArrayVector3 &rkVector) const
 Calculates the cross-product of 2 vectors, i.e. More...
 
ArrayVector3 crossProduct (const ArrayVector3 &rkVector) const
 Calculates the cross-product of 2 vectors, i.e. More...
 
ArrayVector3 crossProduct (const ArrayVector3 &rkVector) const
 Calculates the cross-product of 2 vectors, i.e. More...
 
ArrayReal distance (const ArrayVector3 &rhs) const
 Returns the distance to another vector. More...
 
ArrayReal distance (const ArrayVector3 &rhs) const
 Returns the distance to another vector. More...
 
ArrayReal distance (const ArrayVector3 &rhs) const
 Returns the distance to another vector. More...
 
ArrayReal dotProduct (const ArrayVector3 &vec) const
 Calculates the dot (scalar) product of this vector with another. More...
 
ArrayReal dotProduct (const ArrayVector3 &vec) const
 Calculates the dot (scalar) product of this vector with another. More...
 
ArrayReal dotProduct (const ArrayVector3 &vec) const
 Calculates the dot (scalar) product of this vector with another. More...
 
void getAsVector3 (Vector3 &out, size_t index) const
 
void getAsVector3 (Vector3 &out, size_t index) const
 
void getAsVector3 (Vector3 &out, size_t index) const
 
Vector3 getAsVector3 (size_t index) const
 Prefer using. More...
 
Vector3 getAsVector3 (size_t index) const
 Prefer using. More...
 
Vector3 getAsVector3 (size_t index) const
 Prefer using. More...
 
ArrayReal getMaxComponent () const
 Returns the biggest value between x, y, z; max( x, y, z ) More...
 
ArrayReal getMaxComponent () const
 Returns the biggest value between x, y, z; max( x, y, z ) More...
 
ArrayReal getMaxComponent () const
 Returns the biggest value between x, y, z; max( x, y, z ) More...
 
ArrayReal getMinComponent () const
 Returns the smallest value between x, y, z; min( x, y, z ) More...
 
ArrayReal getMinComponent () const
 Returns the smallest value between x, y, z; min( x, y, z ) More...
 
ArrayReal getMinComponent () const
 Returns the smallest value between x, y, z; min( x, y, z ) More...
 
void inverseLeaveZeroes (void)
 Calculates the inverse of the vectors: 1.0f / v; But if original is zero, the zero is left (0 / 0 = 0). More...
 
void inverseLeaveZeroes (void)
 Calculates the inverse of the vectors: 1.0f / v; But if original is zero, the zero is left (0 / 0 = 0). More...
 
void inverseLeaveZeroes (void)
 Calculates the inverse of the vectors: 1.0f / v; But if original is zero, the zero is left (0 / 0 = 0). More...
 
int isNaN (void) const
 
int isNaN (void) const
 
int isNaN (void) const
 
ArrayReal length () const
 Returns the length (magnitude) of the vector. More...
 
ArrayReal length () const
 Returns the length (magnitude) of the vector. More...
 
ArrayReal length () const
 Returns the length (magnitude) of the vector. More...
 
void loadFromAoS (const Real *RESTRICT_ALIAS src)
 Converts 4 ARRAY_PACKED_REALS reals into this ArrayVector3. More...
 
void loadFromAoS (const Real *RESTRICT_ALIAS src)
 Converts 4 ARRAY_PACKED_REALS reals into this ArrayVector3. More...
 
void makeCeil (const ArrayVector3 &cmp)
 Sets this vector's components to the maximum of its own and the ones of the passed in vector. More...
 
void makeCeil (const ArrayVector3 &cmp)
 Sets this vector's components to the maximum of its own and the ones of the passed in vector. More...
 
void makeCeil (const ArrayVector3 &cmp)
 Sets this vector's components to the maximum of its own and the ones of the passed in vector. More...
 
void makeFloor (const ArrayVector3 &cmp)
 Sets this vector's components to the minimum of its own and the ones of the passed in vector. More...
 
void makeFloor (const ArrayVector3 &cmp)
 Sets this vector's components to the minimum of its own and the ones of the passed in vector. More...
 
void makeFloor (const ArrayVector3 &cmp)
 Sets this vector's components to the minimum of its own and the ones of the passed in vector. More...
 
ArrayVector3 midPoint (const ArrayVector3 &vec) const
 Returns a vector at a point half way between this and the passed in vector. More...
 
ArrayVector3 midPoint (const ArrayVector3 &vec) const
 Returns a vector at a point half way between this and the passed in vector. More...
 
ArrayVector3 midPoint (const ArrayVector3 &vec) const
 Returns a vector at a point half way between this and the passed in vector. More...
 
void normalise (void)
 Unlike Vector3::normalise(), this function does not return the length of the vector because such value was not cached and was never available. More...
 
void normalise (void)
 Unlike Vector3::normalise(), this function does not return the length of the vector because such value was not cached and was never available. More...
 
void normalise (void)
 Unlike Vector3::normalise(), this function does not return the length of the vector because such value was not cached and was never available. More...
 
ArrayVector3 normalisedCopy (void) const
 As normalise, except that this vector is unaffected and the normalised vector is returned as a copy. More...
 
ArrayVector3 normalisedCopy (void) const
 As normalise, except that this vector is unaffected and the normalised vector is returned as a copy. More...
 
ArrayVector3 normalisedCopy (void) const
 As normalise, except that this vector is unaffected and the normalised vector is returned as a copy. More...
 
void operator*= (const ArrayVector3 &a)
 
void operator*= (const ArrayReal fScalar)
 
void operator*= (const ArrayVector3 &a)
 
void operator*= (const Real fScalar)
 
void operator*= (const ArrayVector3 &a)
 
void operator*= (const Real fScalar)
 
void operator*= (const ArrayReal fScalar)
 
void operator*= (const ArrayReal fScalar)
 
const ArrayVector3operator+ () const
 
const ArrayVector3operator+ () const
 
const ArrayVector3operator+ () const
 
void operator+= (const ArrayVector3 &a)
 
void operator+= (const ArrayReal fScalar)
 
void operator+= (const ArrayVector3 &a)
 
void operator+= (const Real fScalar)
 
void operator+= (const ArrayVector3 &a)
 
void operator+= (const ArrayReal fScalar)
 
void operator+= (const Real fScalar)
 
void operator+= (const ArrayReal fScalar)
 
ArrayVector3 operator- () const
 
ArrayVector3 operator- () const
 
ArrayVector3 operator- () const
 
void operator-= (const ArrayVector3 &a)
 
void operator-= (const ArrayReal fScalar)
 
void operator-= (const ArrayVector3 &a)
 
void operator-= (const Real fScalar)
 
void operator-= (const ArrayVector3 &a)
 
void operator-= (const Real fScalar)
 
void operator-= (const ArrayReal fScalar)
 
void operator-= (const ArrayReal fScalar)
 
void operator/= (const ArrayVector3 &a)
 
void operator/= (const ArrayReal fScalar)
 
void operator/= (const ArrayVector3 &a)
 
void operator/= (const ArrayVector3 &a)
 
void operator/= (const Real fScalar)
 
void operator/= (const ArrayReal fScalar)
 
void operator/= (const Real fScalar)
 
void operator/= (const ArrayReal fScalar)
 
ArrayVector3operator= (const Real fScalar)
 Copies only one vector, by looking at the indexes. More...
 
ArrayVector3operator= (const Real fScalar)
 Copies only one vector, by looking at the indexes. More...
 
ArrayVector3operator= (const Real fScalar)
 Copies only one vector, by looking at the indexes. More...
 
ArrayVector3 perpendicular (void) const
 Generates a vector perpendicular to this vector (eg an 'up' vector). More...
 
ArrayVector3 perpendicular (void) const
 Generates a vector perpendicular to this vector (eg an 'up' vector). More...
 
ArrayVector3 perpendicular (void) const
 Generates a vector perpendicular to this vector (eg an 'up' vector). More...
 
ArrayVector3 primaryAxis (void) const
 Extract the primary (dominant) axis from this direction vector. More...
 
ArrayVector3 primaryAxis (void) const
 Extract the primary (dominant) axis from this direction vector. More...
 
ArrayVector3 primaryAxis (void) const
 Extract the primary (dominant) axis from this direction vector. More...
 
ArrayVector3 reflect (const ArrayVector3 &normal) const
 Calculates a reflection vector to the plane with the given normal . More...
 
ArrayVector3 reflect (const ArrayVector3 &normal) const
 Calculates a reflection vector to the plane with the given normal . More...
 
ArrayVector3 reflect (const ArrayVector3 &normal) const
 Calculates a reflection vector to the plane with the given normal . More...
 
void setAll (const Vector3 &v)
 Sets all packed vectors to the same value as the scalar input vector. More...
 
void setAll (const Vector3 &v)
 Sets all packed vectors to the same value as the scalar input vector. More...
 
void setAll (const Vector3 &v)
 Sets all packed vectors to the same value as the scalar input vector. More...
 
void setFromVector3 (const Vector3 &v, size_t index)
 
void setFromVector3 (const Vector3 &v, size_t index)
 
void setFromVector3 (const Vector3 &v, size_t index)
 
void setToSign ()
 Converts the vector to (sign(x), sign(y), sign(z)) More...
 
void setToSign ()
 Converts the vector to (sign(x), sign(y), sign(z)) More...
 
void setToSign ()
 Converts the vector to (sign(x), sign(y), sign(z)) More...
 
ArrayReal squaredDistance (const ArrayVector3 &rhs) const
 Returns the square of the distance to another vector. More...
 
ArrayReal squaredDistance (const ArrayVector3 &rhs) const
 Returns the square of the distance to another vector. More...
 
ArrayReal squaredDistance (const ArrayVector3 &rhs) const
 Returns the square of the distance to another vector. More...
 
ArrayReal squaredLength () const
 Returns the square of the length(magnitude) of the vector. More...
 
ArrayReal squaredLength () const
 Returns the square of the length(magnitude) of the vector. More...
 
ArrayReal squaredLength () const
 Returns the square of the length(magnitude) of the vector. More...
 

Static Public Member Functions

static ArrayVector3 Cmov4 (const ArrayVector3 &arg1, const ArrayVector3 &arg2, ArrayMaskR mask)
 Conditional move. More...
 
static ArrayVector3 Cmov4 (const ArrayVector3 &arg1, const ArrayVector3 &arg2, ArrayMaskR mask)
 Conditional move. More...
 
static ArrayVector3 Cmov4 (const ArrayVector3 &arg1, const ArrayVector3 &arg2, ArrayMaskR mask)
 Conditional move. More...
 

Public Attributes

ArrayReal mChunkBase [3]
 

Static Public Attributes

static const ArrayVector3 NEGATIVE_UNIT_X
 
static const ArrayVector3 NEGATIVE_UNIT_Y
 
static const ArrayVector3 NEGATIVE_UNIT_Z
 
static const ArrayVector3 UNIT_SCALE
 
static const ArrayVector3 UNIT_X
 
static const ArrayVector3 UNIT_Y
 
static const ArrayVector3 UNIT_Z
 
static const ArrayVector3 ZERO
 

Friends

ArrayVector3 operator* (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator* (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator* (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator* (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator* (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator* (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator* (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator* (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator* (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator* (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator* (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator* (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator* (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator* (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator* (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator+ (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator+ (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator+ (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator+ (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator+ (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator+ (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator+ (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator+ (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator+ (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator+ (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator+ (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator+ (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator+ (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator+ (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator+ (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator- (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator- (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator- (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator- (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator- (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator- (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator- (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator- (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator- (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator- (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator- (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator- (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator- (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator- (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator- (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator/ (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator/ (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator/ (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator/ (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator/ (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator/ (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator/ (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator/ (const ArrayVector3 &lhs, const ArrayVector3 &rhs)
 
ArrayVector3 operator/ (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator/ (Real fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator/ (const ArrayVector3 &lhs, Real fScalar)
 
ArrayVector3 operator/ (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator/ (const ArrayVector3 &lhs, ArrayReal fScalar)
 
ArrayVector3 operator/ (ArrayReal fScalar, const ArrayVector3 &rhs)
 
ArrayVector3 operator/ (const ArrayVector3 &lhs, ArrayReal fScalar)
 

Detailed Description

Cache-friendly array of 3-dimensional represented as a SoA array.

Remarks
ArrayVector3 is a SIMD & cache-friendly version of Vector3. An operation on an ArrayVector3 is done on 4 vectors at a time (the actual amount is defined by ARRAY_PACKED_REALS) Assuming ARRAY_PACKED_REALS == 4, the memory layout will be as following: mChunkBase mChunkBase + 3 XXXX YYYY ZZZZ XXXX YYYY ZZZZ Extracting one vector (XYZ) needs 48 bytes, which is within the 64 byte size of common cache lines. Architectures where the cache line == 32 bytes may want to set ARRAY_PACKED_REALS = 2 depending on their needs

Definition at line 64 of file C/OgreArrayVector3.h.

Constructor & Destructor Documentation

Ogre::ArrayVector3::ArrayVector3 ( )
inline

Definition at line 69 of file C/OgreArrayVector3.h.

Ogre::ArrayVector3::ArrayVector3 ( ArrayReal  chunkX,
ArrayReal  chunkY,
ArrayReal  chunkZ 
)
inline

Definition at line 70 of file C/OgreArrayVector3.h.

Ogre::ArrayVector3::ArrayVector3 ( )
inline

Definition at line 69 of file NEON/Single/OgreArrayVector3.h.

Ogre::ArrayVector3::ArrayVector3 ( ArrayReal  chunkX,
ArrayReal  chunkY,
ArrayReal  chunkZ 
)
inline

Definition at line 70 of file NEON/Single/OgreArrayVector3.h.

Ogre::ArrayVector3::ArrayVector3 ( )
inline

Definition at line 68 of file SSE2/Single/OgreArrayVector3.h.

Ogre::ArrayVector3::ArrayVector3 ( ArrayReal  chunkX,
ArrayReal  chunkY,
ArrayReal  chunkZ 
)
inline

Definition at line 69 of file SSE2/Single/OgreArrayVector3.h.

Member Function Documentation

ArrayReal Ogre::ArrayVector3::absDotProduct ( const ArrayVector3 vec) const
inline

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

Remarks
This function work similar dotProduct, except it use absolute value of each component of the vector to computing.
Parameters
vecVector with which to calculate the absolute dot product (together with this one).
Returns
A Real representing the absolute dot product value.
ArrayReal Ogre::ArrayVector3::absDotProduct ( const ArrayVector3 vec) const
inline

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

Remarks
This function work similar dotProduct, except it use absolute value of each component of the vector to computing.
Parameters
vecVector with which to calculate the absolute dot product (together with this one).
Returns
A Real representing the absolute dot product value.
ArrayReal Ogre::ArrayVector3::absDotProduct ( const ArrayVector3 vec) const
inline

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

Remarks
This function work similar dotProduct, except it use absolute value of each component of the vector to computing.
Parameters
vecVector with which to calculate the absolute dot product (together with this one).
Returns
A Real representing the absolute dot product value.
void Ogre::ArrayVector3::Cmov4 ( ArrayMaskR  mask,
const ArrayVector3 replacement 
)
inline

Conditional move update.

MathlibC::Cmov4 Changes each of the four vectors contained in 'this' with the replacement provided

Remarks
If mask param contains anything other than 0's or 0xffffffff's the result is undefined. Use this version if you want to decide whether to keep current result or overwrite with a replacement (performance optimization). i.e. a = Cmov4( a, b ) If this vector hasn't been assigned yet any value and want to decide between two ArrayVector3s, i.e. a = Cmov4( b, c ) then
See also
Cmov4( const ArrayVector3 &arg1, const ArrayVector3 &arg2, ArrayReal mask ); instead.
Parameters
Vectorsto be used as replacement if the mask is zero.
maskfilled with either 0's or 0xFFFFFFFF
Returns
this[i] = mask[i] != 0 ? this[i] : replacement[i]
void Ogre::ArrayVector3::Cmov4 ( ArrayMaskR  mask,
const ArrayVector3 replacement 
)
inline

Conditional move update.

MathlibSSE2::Cmov4 Changes each of the four vectors contained in 'this' with the replacement provided

Remarks
If mask param contains anything other than 0's or 0xffffffff's the result is undefined. Use this version if you want to decide whether to keep current result or overwrite with a replacement (performance optimization). i.e. a = Cmov4( a, b ) If this vector hasn't been assigned yet any value and want to decide between two ArrayVector3s, i.e. a = Cmov4( b, c ) then
See also
Cmov4( const ArrayVector3 &arg1, const ArrayVector3 &arg2, ArrayReal mask ); instead.
Parameters
Vectorsto be used as replacement if the mask is zero.
maskfilled with either 0's or 0xFFFFFFFF
Returns
this[i] = mask[i] != 0 ? this[i] : replacement[i]
void Ogre::ArrayVector3::Cmov4 ( ArrayMaskR  mask,
const ArrayVector3 replacement 
)
inline

Conditional move update.

MathlibNEON::Cmov4 Changes each of the four vectors contained in 'this' with the replacement provided

Remarks
If mask param contains anything other than 0's or 0xffffffff's the result is undefined. Use this version if you want to decide whether to keep current result or overwrite with a replacement (performance optimization). i.e. a = Cmov4( a, b ) If this vector hasn't been assigned yet any value and want to decide between two ArrayVector3s, i.e. a = Cmov4( b, c ) then
See also
Cmov4( const ArrayVector3 &arg1, const ArrayVector3 &arg2, ArrayReal mask ); instead.
Parameters
Vectorsto be used as replacement if the mask is zero.
maskfilled with either 0's or 0xFFFFFFFF
Returns
this[i] = mask[i] != 0 ? this[i] : replacement[i]
static ArrayVector3 Ogre::ArrayVector3::Cmov4 ( const ArrayVector3 arg1,
const ArrayVector3 arg2,
ArrayMaskR  mask 
)
inlinestatic

Conditional move.

MathlibC::Cmov4 Selects between arg1 & arg2 according to mask

Remarks
If mask param contains anything other than 0's or 0xffffffff's the result is undefined. If you wanted to do a = cmov4( a, b ), then consider using the update version
See also
Cmov4( ArrayReal mask, const ArrayVector3 &replacement ); instead.
Parameters
Firstarray of Vectors
Secondarray of Vectors
maskfilled with either 0's or 0xFFFFFFFF
Returns
this[i] = mask[i] != 0 ? arg1[i] : arg2[i]
static ArrayVector3 Ogre::ArrayVector3::Cmov4 ( const ArrayVector3 arg1,
const ArrayVector3 arg2,
ArrayMaskR  mask 
)
inlinestatic

Conditional move.

MathlibSSE2::Cmov4 Selects between arg1 & arg2 according to mask

Remarks
If mask param contains anything other than 0's or 0xffffffff's the result is undefined. If you wanted to do a = cmov4( a, b ), then consider using the update version
See also
Cmov4( ArrayReal mask, const ArrayVector3 &replacement ); instead.
Parameters
Firstarray of Vectors
Secondarray of Vectors
maskfilled with either 0's or 0xFFFFFFFF
Returns
this[i] = mask[i] != 0 ? arg1[i] : arg2[i]
static ArrayVector3 Ogre::ArrayVector3::Cmov4 ( const ArrayVector3 arg1,
const ArrayVector3 arg2,
ArrayMaskR  mask 
)
inlinestatic

Conditional move.

MathlibNEON::Cmov4 Selects between arg1 & arg2 according to mask

Remarks
If mask param contains anything other than 0's or 0xffffffff's the result is undefined. If you wanted to do a = cmov4( a, b ), then consider using the update version
See also
Cmov4( ArrayReal mask, const ArrayVector3 &replacement ); instead.
Parameters
Firstarray of Vectors
Secondarray of Vectors
maskfilled with either 0's or 0xFFFFFFFF
Returns
this[i] = mask[i] != 0 ? arg1[i] : arg2[i]
void Ogre::ArrayVector3::CmovRobust ( ArrayMaskR  mask,
const ArrayVector3 replacement 
)
inline

Conditional move update.

MathlibC::CmovRobust Changes each of the four vectors contained in 'this' with the replacement provided

Remarks
If mask param contains anything other than 0's or 0xffffffff's the result is undefined. Use this version if you want to decide whether to keep current result or overwrite with a replacement (performance optimization). i.e. a = CmovRobust( a, b ) If this vector hasn't been assigned yet any value and want to decide between two ArrayVector3s, i.e. a = Cmov4( b, c ) then
See also
Cmov4( const ArrayVector3 &arg1, const ArrayVector3 &arg2, ArrayReal mask ); instead.
Parameters
Vectorsto be used as replacement if the mask is zero.
maskfilled with either 0's or 0xFFFFFFFF
Returns
this[i] = mask[i] != 0 ? this[i] : replacement[i]
void Ogre::ArrayVector3::CmovRobust ( ArrayMaskR  mask,
const ArrayVector3 replacement 
)
inline

Conditional move update.

MathlibSSE2::CmovRobust Changes each of the four vectors contained in 'this' with the replacement provided

Remarks
If mask param contains anything other than 0's or 0xffffffff's the result is undefined. Use this version if you want to decide whether to keep current result or overwrite with a replacement (performance optimization). i.e. a = CmovRobust( a, b ) If this vector hasn't been assigned yet any value and want to decide between two ArrayVector3s, i.e. a = Cmov4( b, c ) then
See also
Cmov4( const ArrayVector3 &arg1, const ArrayVector3 &arg2, ArrayReal mask ); instead.
Parameters
Vectorsto be used as replacement if the mask is zero.
maskfilled with either 0's or 0xFFFFFFFF
Returns
this[i] = mask[i] != 0 ? this[i] : replacement[i]
void Ogre::ArrayVector3::CmovRobust ( ArrayMaskR  mask,
const ArrayVector3 replacement 
)
inline

Conditional move update.

MathlibNEON::CmovRobust Changes each of the four vectors contained in 'this' with the replacement provided

Remarks
If mask param contains anything other than 0's or 0xffffffff's the result is undefined. Use this version if you want to decide whether to keep current result or overwrite with a replacement (performance optimization). i.e. a = CmovRobust( a, b ) If this vector hasn't been assigned yet any value and want to decide between two ArrayVector3s, i.e. a = Cmov4( b, c ) then
See also
Cmov4( const ArrayVector3 &arg1, const ArrayVector3 &arg2, ArrayReal mask ); instead.
Parameters
Vectorsto be used as replacement if the mask is zero.
maskfilled with either 0's or 0xFFFFFFFF
Returns
this[i] = mask[i] != 0 ? this[i] : replacement[i]
Vector3 Ogre::ArrayVector3::collapseMax ( void  ) const
inline

Takes each Vector and returns one returns a single vector.

Remarks
This is useful when calculating bounding boxes, since it can be done independently in SIMD form, and once it is done, merge the results from the simd vectors into one
Returns
Vector.x = max( vector[0].x, vector[1].x, vector[2].x, vector[3].x ) Vector.y = max( vector[0].y, vector[1].y, vector[2].y, vector[3].y ) Vector.z = max( vector[0].z, vector[1].z, vector[2].z, vector[3].z )
Vector3 Ogre::ArrayVector3::collapseMax ( void  ) const
inline

Takes each Vector and returns one returns a single vector.

Remarks
This is useful when calculating bounding boxes, since it can be done independently in SIMD form, and once it is done, merge the results from the simd vectors into one
Returns
Vector.x = max( vector[0].x, vector[1].x, vector[2].x, vector[3].x ) Vector.y = max( vector[0].y, vector[1].y, vector[2].y, vector[3].y ) Vector.z = max( vector[0].z, vector[1].z, vector[2].z, vector[3].z )
Vector3 Ogre::ArrayVector3::collapseMax ( void  ) const
inline

Takes each Vector and returns one returns a single vector.

Remarks
This is useful when calculating bounding boxes, since it can be done independently in SIMD form, and once it is done, merge the results from the simd vectors into one
Returns
Vector.x = max( vector[0].x, vector[1].x, vector[2].x, vector[3].x ) Vector.y = max( vector[0].y, vector[1].y, vector[2].y, vector[3].y ) Vector.z = max( vector[0].z, vector[1].z, vector[2].z, vector[3].z )
Vector3 Ogre::ArrayVector3::collapseMin ( void  ) const
inline

Takes each Vector and returns one returns a single vector.

Remarks
This is useful when calculating bounding boxes, since it can be done independently in SIMD form, and once it is done, merge the results from the simd vectors into one
Returns
Vector.x = min( vector[0].x, vector[1].x, vector[2].x, vector[3].x ) Vector.y = min( vector[0].y, vector[1].y, vector[2].y, vector[3].y ) Vector.z = min( vector[0].z, vector[1].z, vector[2].z, vector[3].z )
Vector3 Ogre::ArrayVector3::collapseMin ( void  ) const
inline

Takes each Vector and returns one returns a single vector.

Remarks
This is useful when calculating bounding boxes, since it can be done independently in SIMD form, and once it is done, merge the results from the simd vectors into one
Returns
Vector.x = min( vector[0].x, vector[1].x, vector[2].x, vector[3].x ) Vector.y = min( vector[0].y, vector[1].y, vector[2].y, vector[3].y ) Vector.z = min( vector[0].z, vector[1].z, vector[2].z, vector[3].z )
Vector3 Ogre::ArrayVector3::collapseMin ( void  ) const
inline

Takes each Vector and returns one returns a single vector.

Remarks
This is useful when calculating bounding boxes, since it can be done independently in SIMD form, and once it is done, merge the results from the simd vectors into one
Returns
Vector.x = min( vector[0].x, vector[1].x, vector[2].x, vector[3].x ) Vector.y = min( vector[0].y, vector[1].y, vector[2].y, vector[3].y ) Vector.z = min( vector[0].z, vector[1].z, vector[2].z, vector[3].z )
ArrayVector3 Ogre::ArrayVector3::crossProduct ( const ArrayVector3 rkVector) const
inline

Calculates the cross-product of 2 vectors, i.e.

the vector that lies perpendicular to them both.

Remarks
The cross-product is normally used to calculate the normal vector of a plane, by calculating the cross-product of 2 non-equivalent vectors which lie on the plane (e.g. 2 edges of a triangle).
Parameters
rkVectorVector which, together with this one, will be used to calculate the cross-product.
Returns
A vector which is the result of the cross-product. This vector will NOT be normalised, to maximise efficiency
  • call Vector3::normalise on the result if you wish this to be done. As for which side the resultant vector will be on, the returned vector will be on the side from which the arc from 'this' to rkVector is anticlockwise, e.g. UNIT_Y.crossProduct(UNIT_Z) = UNIT_X, whilst UNIT_Z.crossProduct(UNIT_Y) = -UNIT_X. This is because OGRE uses a right-handed coordinate system.
For a clearer explanation, look a the left and the bottom edges of your monitor's screen. Assume that the first vector is the left edge and the second vector is the bottom edge, both of them starting from the lower-left corner of the screen. The resulting vector is going to be perpendicular to both of them and will go inside the screen, towards the cathode tube (assuming you're using a CRT monitor, of course).
ArrayVector3 Ogre::ArrayVector3::crossProduct ( const ArrayVector3 rkVector) const
inline

Calculates the cross-product of 2 vectors, i.e.

the vector that lies perpendicular to them both.

Remarks
The cross-product is normally used to calculate the normal vector of a plane, by calculating the cross-product of 2 non-equivalent vectors which lie on the plane (e.g. 2 edges of a triangle).
Parameters
rkVectorVector which, together with this one, will be used to calculate the cross-product.
Returns
A vector which is the result of the cross-product. This vector will NOT be normalised, to maximise efficiency
  • call Vector3::normalise on the result if you wish this to be done. As for which side the resultant vector will be on, the returned vector will be on the side from which the arc from 'this' to rkVector is anticlockwise, e.g. UNIT_Y.crossProduct(UNIT_Z) = UNIT_X, whilst UNIT_Z.crossProduct(UNIT_Y) = -UNIT_X. This is because OGRE uses a right-handed coordinate system.
For a clearer explanation, look a the left and the bottom edges of your monitor's screen. Assume that the first vector is the left edge and the second vector is the bottom edge, both of them starting from the lower-left corner of the screen. The resulting vector is going to be perpendicular to both of them and will go inside the screen, towards the cathode tube (assuming you're using a CRT monitor, of course).
ArrayVector3 Ogre::ArrayVector3::crossProduct ( const ArrayVector3 rkVector) const
inline

Calculates the cross-product of 2 vectors, i.e.

the vector that lies perpendicular to them both.

Remarks
The cross-product is normally used to calculate the normal vector of a plane, by calculating the cross-product of 2 non-equivalent vectors which lie on the plane (e.g. 2 edges of a triangle).
Parameters
rkVectorVector which, together with this one, will be used to calculate the cross-product.
Returns
A vector which is the result of the cross-product. This vector will NOT be normalised, to maximise efficiency
  • call Vector3::normalise on the result if you wish this to be done. As for which side the resultant vector will be on, the returned vector will be on the side from which the arc from 'this' to rkVector is anticlockwise, e.g. UNIT_Y.crossProduct(UNIT_Z) = UNIT_X, whilst UNIT_Z.crossProduct(UNIT_Y) = -UNIT_X. This is because OGRE uses a right-handed coordinate system.
For a clearer explanation, look a the left and the bottom edges of your monitor's screen. Assume that the first vector is the left edge and the second vector is the bottom edge, both of them starting from the lower-left corner of the screen. The resulting vector is going to be perpendicular to both of them and will go inside the screen, towards the cathode tube (assuming you're using a CRT monitor, of course).
ArrayReal Ogre::ArrayVector3::distance ( const ArrayVector3 rhs) const
inline

Returns the distance to another vector.

Warning
This operation requires a square root and is expensive in terms of CPU operations. If you don't need to know the exact distance (e.g. for just comparing distances) use squaredDistance() instead.
ArrayReal Ogre::ArrayVector3::distance ( const ArrayVector3 rhs) const
inline

Returns the distance to another vector.

Warning
This operation requires a square root and is expensive in terms of CPU operations. If you don't need to know the exact distance (e.g. for just comparing distances) use squaredDistance() instead.
ArrayReal Ogre::ArrayVector3::distance ( const ArrayVector3 rhs) const
inline

Returns the distance to another vector.

Warning
This operation requires a square root and is expensive in terms of CPU operations. If you don't need to know the exact distance (e.g. for just comparing distances) use squaredDistance() instead.
ArrayReal Ogre::ArrayVector3::dotProduct ( const ArrayVector3 vec) const
inline

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

Remarks
The dot product can be used to calculate the angle between 2 vectors. If both are unit vectors, the dot product is the cosine of the angle; otherwise the dot product must be divided by the product of the lengths of both vectors to get the cosine of the angle. This result can further be used to calculate the distance of a point from a plane.
Parameters
vecVector with which to calculate the dot product (together with this one).
Returns
A float representing the dot product value.
ArrayReal Ogre::ArrayVector3::dotProduct ( const ArrayVector3 vec) const
inline

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

Remarks
The dot product can be used to calculate the angle between 2 vectors. If both are unit vectors, the dot product is the cosine of the angle; otherwise the dot product must be divided by the product of the lengths of both vectors to get the cosine of the angle. This result can further be used to calculate the distance of a point from a plane.
Parameters
vecVector with which to calculate the dot product (together with this one).
Returns
A float representing the dot product value.
ArrayReal Ogre::ArrayVector3::dotProduct ( const ArrayVector3 vec) const
inline

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

Remarks
The dot product can be used to calculate the angle between 2 vectors. If both are unit vectors, the dot product is the cosine of the angle; otherwise the dot product must be divided by the product of the lengths of both vectors to get the cosine of the angle. This result can further be used to calculate the distance of a point from a plane.
Parameters
vecVector with which to calculate the dot product (together with this one).
Returns
A float representing the dot product value.
void Ogre::ArrayVector3::getAsVector3 ( Vector3 out,
size_t  index 
) const
inline
void Ogre::ArrayVector3::getAsVector3 ( Vector3 out,
size_t  index 
) const
inline
void Ogre::ArrayVector3::getAsVector3 ( Vector3 out,
size_t  index 
) const
inline
Vector3 Ogre::ArrayVector3::getAsVector3 ( size_t  index) const
inline

Prefer using.

See also
getAsVector3() because this function may have more overhead (the other one is faster)

Definition at line 87 of file SSE2/Single/OgreArrayVector3.h.

References ARRAY_PACKED_REALS.

Vector3 Ogre::ArrayVector3::getAsVector3 ( size_t  index) const
inline

Prefer using.

See also
getAsVector3() because this function may have more overhead (the other one is faster)

Definition at line 88 of file C/OgreArrayVector3.h.

References ARRAY_PACKED_REALS.

Vector3 Ogre::ArrayVector3::getAsVector3 ( size_t  index) const
inline

Prefer using.

See also
getAsVector3() because this function may have more overhead (the other one is faster)

Definition at line 88 of file NEON/Single/OgreArrayVector3.h.

References ARRAY_PACKED_REALS.

ArrayReal Ogre::ArrayVector3::getMaxComponent ( ) const
inline

Returns the biggest value between x, y, z; max( x, y, z )

ArrayReal Ogre::ArrayVector3::getMaxComponent ( ) const
inline

Returns the biggest value between x, y, z; max( x, y, z )

ArrayReal Ogre::ArrayVector3::getMaxComponent ( ) const
inline

Returns the biggest value between x, y, z; max( x, y, z )

ArrayReal Ogre::ArrayVector3::getMinComponent ( ) const
inline

Returns the smallest value between x, y, z; min( x, y, z )

ArrayReal Ogre::ArrayVector3::getMinComponent ( ) const
inline

Returns the smallest value between x, y, z; min( x, y, z )

ArrayReal Ogre::ArrayVector3::getMinComponent ( ) const
inline

Returns the smallest value between x, y, z; min( x, y, z )

void Ogre::ArrayVector3::inverseLeaveZeroes ( void  )
inline

Calculates the inverse of the vectors: 1.0f / v; But if original is zero, the zero is left (0 / 0 = 0).

Example: Bfore inverseLeaveZero: x = 0; y = 2; z = 3; After inverseLeaveZero x = 0; y = 0.5; z = 0.3333;

void Ogre::ArrayVector3::inverseLeaveZeroes ( void  )
inline

Calculates the inverse of the vectors: 1.0f / v; But if original is zero, the zero is left (0 / 0 = 0).

Example: Bfore inverseLeaveZero: x = 0; y = 2; z = 3; After inverseLeaveZero x = 0; y = 0.5; z = 0.3333;

void Ogre::ArrayVector3::inverseLeaveZeroes ( void  )
inline

Calculates the inverse of the vectors: 1.0f / v; But if original is zero, the zero is left (0 / 0 = 0).

Example: Bfore inverseLeaveZero: x = 0; y = 2; z = 3; After inverseLeaveZero x = 0; y = 0.5; z = 0.3333;

int Ogre::ArrayVector3::isNaN ( void  ) const
inline
See also
Vector3::isNaN()
Returns
Return value differs from Vector3's counterpart. We return an int bits 0-4 are set for each NaN of each vector inside. if the int is non-zero, there is a NaN.
int Ogre::ArrayVector3::isNaN ( void  ) const
inline
See also
Vector3::isNaN()
Returns
Return value differs from Vector3's counterpart. We return an int bits 0-4 are set for each NaN of each vector inside. if the int is non-zero, there is a NaN.
int Ogre::ArrayVector3::isNaN ( void  ) const
inline
See also
Vector3::isNaN()
Returns
Return value differs from Vector3's counterpart. We return an int bits 0-4 are set for each NaN of each vector inside. if the int is non-zero, there is a NaN.
ArrayReal Ogre::ArrayVector3::length ( ) const
inline

Returns the length (magnitude) of the vector.

Warning
This operation requires a square root and is expensive in terms of CPU operations. If you don't need to know the exact length (e.g. for just comparing lengths) use squaredLength() instead.
ArrayReal Ogre::ArrayVector3::length ( ) const
inline

Returns the length (magnitude) of the vector.

Warning
This operation requires a square root and is expensive in terms of CPU operations. If you don't need to know the exact length (e.g. for just comparing lengths) use squaredLength() instead.
ArrayReal Ogre::ArrayVector3::length ( ) const
inline

Returns the length (magnitude) of the vector.

Warning
This operation requires a square root and is expensive in terms of CPU operations. If you don't need to know the exact length (e.g. for just comparing lengths) use squaredLength() instead.
void Ogre::ArrayVector3::loadFromAoS ( const Real *RESTRICT_ALIAS  src)
inline

Converts 4 ARRAY_PACKED_REALS reals into this ArrayVector3.

Remarks
'src' must be aligned and assumed to have enough memory for ARRAY_PACKED_REALS Vector3 i.e. on SSE2 you can construct src as: OGRE_ALIGNED_DECL( Real, vals[ARRAY_PACKED_REALS * 4], OGRE_SIMD_ALIGNMENT ) = { x0, y0, z0, 0, x1, y1, z1, 0, x2, y2, z2, 0, x3, y3, z3, 0, } Frustum::getCustomWorldSpaceCorners implementation for an actual, advanced use case.
void Ogre::ArrayVector3::loadFromAoS ( const Real *RESTRICT_ALIAS  src)
inline

Converts 4 ARRAY_PACKED_REALS reals into this ArrayVector3.

Remarks
'src' must be aligned and assumed to have enough memory for ARRAY_PACKED_REALS Vector3 i.e. on SSE2 you can construct src as: OGRE_ALIGNED_DECL( Real, vals[ARRAY_PACKED_REALS * 4], OGRE_SIMD_ALIGNMENT ) = { x0, y0, z0, 0, x1, y1, z1, 0, x2, y2, z2, 0, x3, y3, z3, 0, } Frustum::getCustomWorldSpaceCorners implementation for an actual, advanced use case.
void Ogre::ArrayVector3::makeCeil ( const ArrayVector3 cmp)
inline

Sets this vector's components to the maximum of its own and the ones of the passed in vector.

Remarks
'Maximum' in this case means the combination of the highest value of x, y and z from both vectors. Highest is taken just numerically, not magnitude, so 1 > -3.
void Ogre::ArrayVector3::makeCeil ( const ArrayVector3 cmp)
inline

Sets this vector's components to the maximum of its own and the ones of the passed in vector.

Remarks
'Maximum' in this case means the combination of the highest value of x, y and z from both vectors. Highest is taken just numerically, not magnitude, so 1 > -3.
void Ogre::ArrayVector3::makeCeil ( const ArrayVector3 cmp)
inline

Sets this vector's components to the maximum of its own and the ones of the passed in vector.

Remarks
'Maximum' in this case means the combination of the highest value of x, y and z from both vectors. Highest is taken just numerically, not magnitude, so 1 > -3.
void Ogre::ArrayVector3::makeFloor ( const ArrayVector3 cmp)
inline

Sets this vector's components to the minimum of its own and the ones of the passed in vector.

Remarks
'Minimum' in this case means the combination of the lowest value of x, y and z from both vectors. Lowest is taken just numerically, not magnitude, so -1 < 0.
void Ogre::ArrayVector3::makeFloor ( const ArrayVector3 cmp)
inline

Sets this vector's components to the minimum of its own and the ones of the passed in vector.

Remarks
'Minimum' in this case means the combination of the lowest value of x, y and z from both vectors. Lowest is taken just numerically, not magnitude, so -1 < 0.
void Ogre::ArrayVector3::makeFloor ( const ArrayVector3 cmp)
inline

Sets this vector's components to the minimum of its own and the ones of the passed in vector.

Remarks
'Minimum' in this case means the combination of the lowest value of x, y and z from both vectors. Lowest is taken just numerically, not magnitude, so -1 < 0.
ArrayVector3 Ogre::ArrayVector3::midPoint ( const ArrayVector3 vec) const
inline

Returns a vector at a point half way between this and the passed in vector.

ArrayVector3 Ogre::ArrayVector3::midPoint ( const ArrayVector3 vec) const
inline

Returns a vector at a point half way between this and the passed in vector.

ArrayVector3 Ogre::ArrayVector3::midPoint ( const ArrayVector3 vec) const
inline

Returns a vector at a point half way between this and the passed in vector.

void Ogre::ArrayVector3::normalise ( void  )
inline

Unlike Vector3::normalise(), this function does not return the length of the vector because such value was not cached and was never available.

See also
Vector3::normalise()
void Ogre::ArrayVector3::normalise ( void  )
inline

Unlike Vector3::normalise(), this function does not return the length of the vector because such value was not cached and was never available.

See also
Vector3::normalise()
void Ogre::ArrayVector3::normalise ( void  )
inline

Unlike Vector3::normalise(), this function does not return the length of the vector because such value was not cached and was never available.

See also
Vector3::normalise()
ArrayVector3 Ogre::ArrayVector3::normalisedCopy ( void  ) const
inline

As normalise, except that this vector is unaffected and the normalised vector is returned as a copy.

ArrayVector3 Ogre::ArrayVector3::normalisedCopy ( void  ) const
inline

As normalise, except that this vector is unaffected and the normalised vector is returned as a copy.

ArrayVector3 Ogre::ArrayVector3::normalisedCopy ( void  ) const
inline

As normalise, except that this vector is unaffected and the normalised vector is returned as a copy.

void Ogre::ArrayVector3::operator*= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator*= ( const ArrayReal  fScalar)
inline
void Ogre::ArrayVector3::operator*= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator*= ( const Real  fScalar)
inline
void Ogre::ArrayVector3::operator*= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator*= ( const ArrayReal  fScalar)
inline
void Ogre::ArrayVector3::operator*= ( const Real  fScalar)
inline
void Ogre::ArrayVector3::operator*= ( const ArrayReal  fScalar)
inline
const ArrayVector3& Ogre::ArrayVector3::operator+ ( ) const
inline
const ArrayVector3& Ogre::ArrayVector3::operator+ ( ) const
inline
const ArrayVector3& Ogre::ArrayVector3::operator+ ( ) const
inline
void Ogre::ArrayVector3::operator+= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator+= ( const ArrayReal  fScalar)
inline
void Ogre::ArrayVector3::operator+= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator+= ( const Real  fScalar)
inline
void Ogre::ArrayVector3::operator+= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator+= ( const Real  fScalar)
inline
void Ogre::ArrayVector3::operator+= ( const ArrayReal  fScalar)
inline
void Ogre::ArrayVector3::operator+= ( const ArrayReal  fScalar)
inline
ArrayVector3 Ogre::ArrayVector3::operator- ( ) const
inline
ArrayVector3 Ogre::ArrayVector3::operator- ( ) const
inline
ArrayVector3 Ogre::ArrayVector3::operator- ( ) const
inline
void Ogre::ArrayVector3::operator-= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator-= ( const ArrayReal  fScalar)
inline
void Ogre::ArrayVector3::operator-= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator-= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator-= ( const Real  fScalar)
inline
void Ogre::ArrayVector3::operator-= ( const Real  fScalar)
inline
void Ogre::ArrayVector3::operator-= ( const ArrayReal  fScalar)
inline
void Ogre::ArrayVector3::operator-= ( const ArrayReal  fScalar)
inline
void Ogre::ArrayVector3::operator/= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator/= ( const ArrayReal  fScalar)
inline
void Ogre::ArrayVector3::operator/= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator/= ( const ArrayVector3 a)
inline
void Ogre::ArrayVector3::operator/= ( const Real  fScalar)
inline
void Ogre::ArrayVector3::operator/= ( const Real  fScalar)
inline
void Ogre::ArrayVector3::operator/= ( const ArrayReal  fScalar)
inline
void Ogre::ArrayVector3::operator/= ( const ArrayReal  fScalar)
inline
ArrayVector3& Ogre::ArrayVector3::operator= ( const Real  fScalar)
inline

Copies only one vector, by looking at the indexes.

Definition at line 120 of file SSE2/Single/OgreArrayVector3.h.

ArrayVector3& Ogre::ArrayVector3::operator= ( const Real  fScalar)
inline

Copies only one vector, by looking at the indexes.

Definition at line 121 of file NEON/Single/OgreArrayVector3.h.

ArrayVector3& Ogre::ArrayVector3::operator= ( const Real  fScalar)
inline

Copies only one vector, by looking at the indexes.

Definition at line 121 of file C/OgreArrayVector3.h.

ArrayVector3 Ogre::ArrayVector3::perpendicular ( void  ) const
inline

Generates a vector perpendicular to this vector (eg an 'up' vector).

Remarks
This method will return a vector which is perpendicular to this vector. There are an infinite number of possibilities but this method will guarantee to generate one of them. If you need more control you should use the Quaternion class.
ArrayVector3 Ogre::ArrayVector3::perpendicular ( void  ) const
inline

Generates a vector perpendicular to this vector (eg an 'up' vector).

Remarks
This method will return a vector which is perpendicular to this vector. There are an infinite number of possibilities but this method will guarantee to generate one of them. If you need more control you should use the Quaternion class.
ArrayVector3 Ogre::ArrayVector3::perpendicular ( void  ) const
inline

Generates a vector perpendicular to this vector (eg an 'up' vector).

Remarks
This method will return a vector which is perpendicular to this vector. There are an infinite number of possibilities but this method will guarantee to generate one of them. If you need more control you should use the Quaternion class.
ArrayVector3 Ogre::ArrayVector3::primaryAxis ( void  ) const
inline

Extract the primary (dominant) axis from this direction vector.

ArrayVector3 Ogre::ArrayVector3::primaryAxis ( void  ) const
inline

Extract the primary (dominant) axis from this direction vector.

ArrayVector3 Ogre::ArrayVector3::primaryAxis ( void  ) const
inline

Extract the primary (dominant) axis from this direction vector.

ArrayVector3 Ogre::ArrayVector3::reflect ( const ArrayVector3 normal) const
inline

Calculates a reflection vector to the plane with the given normal .

Remarks
NB assumes 'this' is pointing AWAY FROM the plane, invert if it is not.
ArrayVector3 Ogre::ArrayVector3::reflect ( const ArrayVector3 normal) const
inline

Calculates a reflection vector to the plane with the given normal .

Remarks
NB assumes 'this' is pointing AWAY FROM the plane, invert if it is not.
ArrayVector3 Ogre::ArrayVector3::reflect ( const ArrayVector3 normal) const
inline

Calculates a reflection vector to the plane with the given normal .

Remarks
NB assumes 'this' is pointing AWAY FROM the plane, invert if it is not.
void Ogre::ArrayVector3::setAll ( const Vector3 v)
inline

Sets all packed vectors to the same value as the scalar input vector.

Definition at line 105 of file SSE2/Single/OgreArrayVector3.h.

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

void Ogre::ArrayVector3::setAll ( const Vector3 v)
inline

Sets all packed vectors to the same value as the scalar input vector.

Definition at line 106 of file NEON/Single/OgreArrayVector3.h.

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

void Ogre::ArrayVector3::setAll ( const Vector3 v)
inline

Sets all packed vectors to the same value as the scalar input vector.

Definition at line 106 of file C/OgreArrayVector3.h.

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

void Ogre::ArrayVector3::setFromVector3 ( const Vector3 v,
size_t  index 
)
inline
void Ogre::ArrayVector3::setFromVector3 ( const Vector3 v,
size_t  index 
)
inline
void Ogre::ArrayVector3::setFromVector3 ( const Vector3 v,
size_t  index 
)
inline
void Ogre::ArrayVector3::setToSign ( )
inline

Converts the vector to (sign(x), sign(y), sign(z))

Remarks
For reference, sign( x ) = x >= 0 ? 1.0 : -1.0 sign( -0.0f ) may return 1 or -1 depending on implementation
SSE2 implementation: Does distinguish between -0 & 0 C implementation: Does not distinguish between -0 & 0
void Ogre::ArrayVector3::setToSign ( )
inline

Converts the vector to (sign(x), sign(y), sign(z))

Remarks
For reference, sign( x ) = x >= 0 ? 1.0 : -1.0 sign( -0.0f ) may return 1 or -1 depending on implementation
SSE2 implementation: Does distinguish between -0 & 0 C implementation: Does not distinguish between -0 & 0
void Ogre::ArrayVector3::setToSign ( )
inline

Converts the vector to (sign(x), sign(y), sign(z))

Remarks
For reference, sign( x ) = x >= 0 ? 1.0 : -1.0 sign( -0.0f ) may return 1 or -1 depending on implementation
SSE2 implementation: Does distinguish between -0 & 0 C implementation: Does not distinguish between -0 & 0
ArrayReal Ogre::ArrayVector3::squaredDistance ( const ArrayVector3 rhs) const
inline

Returns the square of the distance to another vector.

Remarks
This method is for efficiency - calculating the actual distance to another vector requires a square root, which is expensive in terms of the operations required. This method returns the square of the distance to another vector, i.e. the same as the distance but before the square root is taken. Use this if you want to find the longest / shortest distance without incurring the square root.
ArrayReal Ogre::ArrayVector3::squaredDistance ( const ArrayVector3 rhs) const
inline

Returns the square of the distance to another vector.

Remarks
This method is for efficiency - calculating the actual distance to another vector requires a square root, which is expensive in terms of the operations required. This method returns the square of the distance to another vector, i.e. the same as the distance but before the square root is taken. Use this if you want to find the longest / shortest distance without incurring the square root.
ArrayReal Ogre::ArrayVector3::squaredDistance ( const ArrayVector3 rhs) const
inline

Returns the square of the distance to another vector.

Remarks
This method is for efficiency - calculating the actual distance to another vector requires a square root, which is expensive in terms of the operations required. This method returns the square of the distance to another vector, i.e. the same as the distance but before the square root is taken. Use this if you want to find the longest / shortest distance without incurring the square root.
ArrayReal Ogre::ArrayVector3::squaredLength ( ) const
inline

Returns the square of the length(magnitude) of the vector.

Remarks
This method is for efficiency - calculating the actual length of a vector requires a square root, which is expensive in terms of the operations required. This method returns the square of the length of the vector, i.e. the same as the length but before the square root is taken. Use this if you want to find the longest / shortest vector without incurring the square root.
ArrayReal Ogre::ArrayVector3::squaredLength ( ) const
inline

Returns the square of the length(magnitude) of the vector.

Remarks
This method is for efficiency - calculating the actual length of a vector requires a square root, which is expensive in terms of the operations required. This method returns the square of the length of the vector, i.e. the same as the length but before the square root is taken. Use this if you want to find the longest / shortest vector without incurring the square root.
ArrayReal Ogre::ArrayVector3::squaredLength ( ) const
inline

Returns the square of the length(magnitude) of the vector.

Remarks
This method is for efficiency - calculating the actual length of a vector requires a square root, which is expensive in terms of the operations required. This method returns the square of the length of the vector, i.e. the same as the length but before the square root is taken. Use this if you want to find the longest / shortest vector without incurring the square root.

Friends And Related Function Documentation

ArrayVector3 operator* ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator* ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator* ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator* ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator* ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator* ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator* ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator* ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator* ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator* ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator* ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator* ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator* ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator* ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator* ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator+ ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator+ ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator+ ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator+ ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator+ ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator+ ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator+ ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator+ ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator+ ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator+ ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator+ ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator+ ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator+ ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator+ ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator+ ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator- ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator- ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator- ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator- ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator- ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator- ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator- ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator- ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator- ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator- ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator- ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator- ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator- ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator- ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator- ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator/ ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator/ ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator/ ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator/ ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator/ ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator/ ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator/ ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator/ ( const ArrayVector3 lhs,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator/ ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator/ ( Real  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator/ ( const ArrayVector3 lhs,
Real  fScalar 
)
friend
ArrayVector3 operator/ ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator/ ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend
ArrayVector3 operator/ ( ArrayReal  fScalar,
const ArrayVector3 rhs 
)
friend
ArrayVector3 operator/ ( const ArrayVector3 lhs,
ArrayReal  fScalar 
)
friend

Member Data Documentation

ArrayReal Ogre::ArrayVector3::mChunkBase

Definition at line 67 of file C/OgreArrayVector3.h.

static const ArrayVector3 Ogre::ArrayVector3::NEGATIVE_UNIT_X
static

Definition at line 342 of file C/OgreArrayVector3.h.

static const ArrayVector3 Ogre::ArrayVector3::NEGATIVE_UNIT_Y
static

Definition at line 343 of file C/OgreArrayVector3.h.

static const ArrayVector3 Ogre::ArrayVector3::NEGATIVE_UNIT_Z
static

Definition at line 344 of file C/OgreArrayVector3.h.

static const ArrayVector3 Ogre::ArrayVector3::UNIT_SCALE
static

Definition at line 345 of file C/OgreArrayVector3.h.

static const ArrayVector3 Ogre::ArrayVector3::UNIT_X
static

Definition at line 339 of file C/OgreArrayVector3.h.

static const ArrayVector3 Ogre::ArrayVector3::UNIT_Y
static

Definition at line 340 of file C/OgreArrayVector3.h.

static const ArrayVector3 Ogre::ArrayVector3::UNIT_Z
static

Definition at line 341 of file C/OgreArrayVector3.h.

static const ArrayVector3 Ogre::ArrayVector3::ZERO
static

Definition at line 338 of file C/OgreArrayVector3.h.


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