LLVector4 Class Reference

#include <v4math.h>

Inheritance diagram for LLVector4:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 LLVector4 ()
 LLVector4 (const F32 *vec)
 LLVector4 (const F64 *vec)
 LLVector4 (const LLVector3 &vec)
 LLVector4 (const LLVector3 &vec, F32 w)
 LLVector4 (F32 x, F32 y, F32 z)
 LLVector4 (F32 x, F32 y, F32 z, F32 w)
LLSD getValue () const
BOOL isFinite () const
void clear ()
void clearVec ()
void zeroVec ()
void set (F32 x, F32 y, F32 z)
void set (F32 x, F32 y, F32 z, F32 w)
void set (const LLVector4 &vec)
void set (const LLVector3 &vec, F32 w=1.f)
void set (const F32 *vec)
void setVec (F32 x, F32 y, F32 z)
void setVec (F32 x, F32 y, F32 z, F32 w)
void setVec (const LLVector4 &vec)
void setVec (const LLVector3 &vec, F32 w=1.f)
void setVec (const F32 *vec)
F32 length () const
F32 lengthSquared () const
F32 normalize ()
F32 magVec () const
F32 magVecSquared () const
F32 normVec ()
BOOL abs ()
BOOL isExactlyClear () const
BOOL isExactlyZero () const
const LLVector4rotVec (F32 angle, const LLVector4 &vec)
const LLVector4rotVec (F32 angle, F32 x, F32 y, F32 z)
const LLVector4rotVec (const LLMatrix4 &mat)
const LLVector4rotVec (const LLQuaternion &q)
const LLVector4scaleVec (const LLVector4 &vec)
F32 operator[] (int idx) const
F32operator[] (int idx)

Public Attributes

F32 mV [LENGTHOFVECTOR4]

Friends

std::ostream & operator<< (std::ostream &s, const LLVector4 &a)
LLVector4 operator+ (const LLVector4 &a, const LLVector4 &b)
LLVector4 operator- (const LLVector4 &a, const LLVector4 &b)
F32 operator* (const LLVector4 &a, const LLVector4 &b)
LLVector4 operator% (const LLVector4 &a, const LLVector4 &b)
LLVector4 operator/ (const LLVector4 &a, F32 k)
LLVector4 operator* (const LLVector4 &a, F32 k)
LLVector4 operator* (F32 k, const LLVector4 &a)
bool operator== (const LLVector4 &a, const LLVector4 &b)
bool operator!= (const LLVector4 &a, const LLVector4 &b)
const LLVector4operator+= (LLVector4 &a, const LLVector4 &b)
const LLVector4operator-= (LLVector4 &a, const LLVector4 &b)
const LLVector4operator%= (LLVector4 &a, const LLVector4 &b)
const LLVector4operator*= (LLVector4 &a, F32 k)
const LLVector4operator/= (LLVector4 &a, F32 k)
LLVector4 operator- (const LLVector4 &a)


Detailed Description

Definition at line 47 of file v4math.h.


Constructor & Destructor Documentation

LLVector4::LLVector4 ( void   )  [inline]

Definition at line 143 of file v4math.h.

References mV, VW, VX, VY, and VZ.

Referenced by lerp(), operator%(), operator*(), operator-(), operator/(), and vec3to4().

Here is the caller graph for this function:

LLVector4::LLVector4 ( const F32 vec  )  [inline, explicit]

Definition at line 167 of file v4math.h.

References mV, VW, VX, VY, and VZ.

LLVector4::LLVector4 ( const F64 vec  )  [inline, explicit]

Definition at line 175 of file v4math.h.

References mV, VW, VX, VY, and VZ.

LLVector4::LLVector4 ( const LLVector3 vec  )  [inline, explicit]

Definition at line 183 of file v4math.h.

References LLVector3::mV, mV, VW, VX, VY, and VZ.

LLVector4::LLVector4 ( const LLVector3 vec,
F32  w 
) [inline, explicit]

Definition at line 191 of file v4math.h.

References LLVector3::mV, mV, VW, VX, VY, and VZ.

LLVector4::LLVector4 ( F32  x,
F32  y,
F32  z 
) [inline]

Definition at line 151 of file v4math.h.

References mV, VW, VX, VY, and VZ.

LLVector4::LLVector4 ( F32  x,
F32  y,
F32  z,
F32  w 
) [inline]

Definition at line 159 of file v4math.h.

References mV, VW, VX, VY, and VZ.


Member Function Documentation

LLSD LLVector4::getValue (  )  const [inline]

Definition at line 59 of file v4math.h.

References mV.

BOOL LLVector4::isFinite (  )  const [inline]

Definition at line 200 of file v4math.h.

References llfinite, mV, VW, VX, VY, and VZ.

Referenced by LLTemplateMessageReader::getVector4().

Here is the caller graph for this function:

void LLVector4::clear ( void   )  [inline]

Definition at line 207 of file v4math.h.

References mV, VW, VX, VY, and VZ.

void LLVector4::clearVec ( void   )  [inline]

Definition at line 216 of file v4math.h.

References mV, VW, VX, VY, and VZ.

Referenced by LLAgent::init(), and process_agent_movement_complete().

Here is the caller graph for this function:

void LLVector4::zeroVec ( void   )  [inline]

Definition at line 225 of file v4math.h.

References mV, VW, VX, VY, and VZ.

Referenced by LLTemplateMessageReader::getVector4().

Here is the caller graph for this function:

void LLVector4::set ( F32  x,
F32  y,
F32  z 
) [inline]

Definition at line 233 of file v4math.h.

References mV, VW, VX, VY, and VZ.

void LLVector4::set ( F32  x,
F32  y,
F32  z,
F32  w 
) [inline]

Definition at line 241 of file v4math.h.

References mV, VW, VX, VY, and VZ.

void LLVector4::set ( const LLVector4 vec  )  [inline]

Definition at line 249 of file v4math.h.

References mV, VW, VX, VY, and VZ.

void LLVector4::set ( const LLVector3 vec,
F32  w = 1.f 
) [inline]

Definition at line 257 of file v4math.h.

References LLVector3::mV, mV, VW, VX, VY, and VZ.

void LLVector4::set ( const F32 vec  )  [inline]

Definition at line 265 of file v4math.h.

References mV, VW, VX, VY, and VZ.

void LLVector4::setVec ( F32  x,
F32  y,
F32  z 
) [inline]

void LLVector4::setVec ( F32  x,
F32  y,
F32  z,
F32  w 
) [inline]

Definition at line 284 of file v4math.h.

References mV, VW, VX, VY, and VZ.

void LLVector4::setVec ( const LLVector4 vec  )  [inline]

Definition at line 293 of file v4math.h.

References mV, VW, VX, VY, and VZ.

void LLVector4::setVec ( const LLVector3 vec,
F32  w = 1.f 
) [inline]

Reimplemented in LLPlane.

Definition at line 302 of file v4math.h.

References LLVector3::mV, mV, VW, VX, VY, and VZ.

void LLVector4::setVec ( const F32 vec  )  [inline]

Definition at line 311 of file v4math.h.

References mV, VW, VX, VY, and VZ.

F32 LLVector4::length ( void   )  const [inline]

Definition at line 321 of file v4math.h.

References fsqrtf, mV, VX, VY, and VZ.

Referenced by dist_vec().

Here is the caller graph for this function:

F32 LLVector4::lengthSquared ( void   )  const [inline]

Definition at line 326 of file v4math.h.

References mV, VX, VY, and VZ.

Referenced by dist_vec_squared().

Here is the caller graph for this function:

F32 LLVector4::normalize ( void   )  [inline]

Definition at line 463 of file v4math.h.

References FP_MAG_THRESHOLD, fsqrtf, mV, VX, VY, and VZ.

Referenced by angle_between(), and are_parallel().

Here is the caller graph for this function:

F32 LLVector4::magVec ( void   )  const [inline]

Definition at line 331 of file v4math.h.

References fsqrtf, mV, VX, VY, and VZ.

Referenced by LLAgent::init().

Here is the caller graph for this function:

F32 LLVector4::magVecSquared ( void   )  const [inline]

Definition at line 336 of file v4math.h.

References mV, VX, VY, and VZ.

F32 LLVector4::normVec ( void   )  [inline]

Definition at line 486 of file v4math.h.

References FP_MAG_THRESHOLD, fsqrtf, mV, VX, VY, and VZ.

Referenced by LLVOAvatar::idleUpdate(), and LLPipeline::setupAvatarLights().

Here is the caller graph for this function:

BOOL LLVector4::abs (  ) 

Definition at line 90 of file v4math.cpp.

References FALSE, mV, and TRUE.

BOOL LLVector4::isExactlyClear (  )  const [inline]

Definition at line 99 of file v4math.h.

References mV, VW, VX, VY, and VZ.

Referenced by LLWorld::resolveStepHeightGlobal().

Here is the caller graph for this function:

BOOL LLVector4::isExactlyZero (  )  const [inline]

Definition at line 100 of file v4math.h.

References mV, VW, VX, VY, and VZ.

Referenced by LLAgent::calcCameraPositionTargetGlobal().

Here is the caller graph for this function:

const LLVector4& LLVector4::rotVec ( F32  angle,
const LLVector4 vec 
)

const LLVector4& LLVector4::rotVec ( F32  angle,
F32  x,
F32  y,
F32  z 
)

const LLVector4 & LLVector4::rotVec ( const LLMatrix4 mat  ) 

Definition at line 66 of file v4math.cpp.

const LLVector4 & LLVector4::rotVec ( const LLQuaternion q  ) 

Definition at line 72 of file v4math.cpp.

const LLVector4 & LLVector4::scaleVec ( const LLVector4 vec  ) 

Definition at line 78 of file v4math.cpp.

References mV, VW, VX, VY, and VZ.

Referenced by LLManipTranslate::highlightManipulators().

Here is the caller graph for this function:

F32 LLVector4::operator[] ( int  idx  )  const [inline]

Definition at line 109 of file v4math.h.

References mV.

F32& LLVector4::operator[] ( int  idx  )  [inline]

Definition at line 110 of file v4math.h.

References mV.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LLVector4 a 
) [friend]

Definition at line 103 of file v4math.cpp.

LLVector4 operator+ ( const LLVector4 a,
const LLVector4 b 
) [friend]

Definition at line 343 of file v4math.h.

LLVector4 operator- ( const LLVector4 a,
const LLVector4 b 
) [friend]

Definition at line 349 of file v4math.h.

F32 operator* ( const LLVector4 a,
const LLVector4 b 
) [friend]

Definition at line 355 of file v4math.h.

LLVector4 operator% ( const LLVector4 a,
const LLVector4 b 
) [friend]

Definition at line 360 of file v4math.h.

LLVector4 operator/ ( const LLVector4 a,
F32  k 
) [friend]

Definition at line 365 of file v4math.h.

LLVector4 operator* ( const LLVector4 a,
F32  k 
) [friend]

Definition at line 372 of file v4math.h.

LLVector4 operator* ( F32  k,
const LLVector4 a 
) [friend]

Definition at line 377 of file v4math.h.

bool operator== ( const LLVector4 a,
const LLVector4 b 
) [friend]

Definition at line 382 of file v4math.h.

bool operator!= ( const LLVector4 a,
const LLVector4 b 
) [friend]

Definition at line 389 of file v4math.h.

const LLVector4& operator+= ( LLVector4 a,
const LLVector4 b 
) [friend]

Definition at line 397 of file v4math.h.

const LLVector4& operator-= ( LLVector4 a,
const LLVector4 b 
) [friend]

Definition at line 405 of file v4math.h.

const LLVector4& operator%= ( LLVector4 a,
const LLVector4 b 
) [friend]

Definition at line 413 of file v4math.h.

const LLVector4& operator*= ( LLVector4 a,
F32  k 
) [friend]

Definition at line 420 of file v4math.h.

const LLVector4& operator/= ( LLVector4 a,
F32  k 
) [friend]

Definition at line 428 of file v4math.h.

LLVector4 operator- ( const LLVector4 a  )  [friend]

Definition at line 437 of file v4math.h.


Member Data Documentation

Definition at line 50 of file v4math.h.

Referenced by LLCamera::AABBInFrustum(), LLCamera::AABBInFrustumNoFarClip(), abs(), LLTemplateMessageBuilder::addVector4(), LLPolyMorphTarget::apply(), LLPolyMorphTarget::applyMask(), LLDrawPoolBump::beginFullbrightShiny(), LLDrawPoolBump::beginShiny(), LLAgent::calcCameraPositionTargetGlobal(), LLCamera::calcPlaneMask(), clear(), clearVec(), LLPlane::dist(), LLPolyVertexMask::generateMask(), getValue(), LLWLParamSet::getVector(), LLWaterParamSet::getVector4(), LLTemplateMessageReader::getVector4(), LLManipTranslate::highlightManipulators(), LLManipScale::highlightManipulators(), LLVOAvatar::idleUpdate(), LLVOSky::initAtmospherics(), LLMatrix4::initMatrix(), LLMatrix4::initRows(), isExactlyClear(), isExactlyZero(), isFinite(), length(), lengthSquared(), lerp(), ll_sd_from_vector4(), ll_vector4_from_sd(), LLColor3::LLColor3(), LLColor4::LLColor4(), LLGLUserClipPlane::LLGLUserClipPlane(), LLMatrix4::LLMatrix4(), LLQuaternion::LLQuaternion(), LLVector3::LLVector3(), LLVector4(), magVec(), magVecSquared(), LLV4Matrix3::multiply(), normalize(), normVec(), operator!=(), operator%(), operator%=(), operator*(), operator*=(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), WLFloatControl::operator=(), WLColorControl::operator=(), WaterFloatControl::operator=(), WaterColorControl::operator=(), LLVector3d::operator=(), operator==(), operator[](), LLDataPackerAsciiFile::packVector4(), LLDataPackerAsciiBuffer::packVector4(), LLDataPackerBinaryBuffer::packVector4(), LLViewerObject::processUpdateMessage(), LLWLParamManager::propagateParameters(), LLManipRotate::render(), LLDrawPoolAvatar::renderAvatars(), LLDrawPoolTerrain::renderFull2TU(), LLDrawPoolTerrain::renderFull4TU(), LLDrawPoolTerrain::renderFullShader(), renderOctree(), LLDrawPoolTerrain::renderSimple(), LLVOAvatar::renderSkinned(), renderTexturePriority(), LLManipTranslate::renderTranslationHandles(), LLWorld::resolveStepHeightGlobal(), rotate_vector(), LLCoordFrame::rotateToAbsolute(), LLCoordFrame::rotateToLocal(), scaleVec(), LLWLParamSet::set(), LLWaterParamSet::set(), set(), LLVector3::set(), LLQuaternion::setAngleAxis(), LLQuaternion::setQuat(), LLMatrix4::setTranslation(), LLPipeline::setupAvatarLights(), LLPipeline::setupHWLights(), setVec(), LLVector3::setVec(), LLCoordFrame::transformToAbsolute(), LLCoordFrame::transformToLocal(), LLDataPackerAsciiFile::unpackVector4(), LLDataPackerAsciiBuffer::unpackVector4(), LLDataPackerBinaryBuffer::unpackVector4(), LLWLParamSet::update(), LLVOAvatar::updateCharacter(), LLWLParamManager::updateShaderUniforms(), LLWaterParamManager::updateShaderUniforms(), LLViewerJointMesh::uploadJointMatrices(), vec4to3(), and zeroVec().


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

Generated on Fri May 16 09:21:45 2008 for SecondLife by  doxygen 1.5.5