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 clearVec ()
void zeroVec ()
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 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 (  )  [inline]

Definition at line 131 of file v4math.h.

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

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

Definition at line 155 of file v4math.h.

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

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

Definition at line 163 of file v4math.h.

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

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

Definition at line 171 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 179 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 139 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 147 of file v4math.h.

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


Member Function Documentation

BOOL LLVector4::abs (  ) 

Definition at line 90 of file v4math.cpp.

References f, FALSE, mV, and TRUE.

void LLVector4::clearVec (  )  [inline]

Definition at line 195 of file v4math.h.

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

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

LLSD LLVector4::getValue (  )  const [inline]

Definition at line 59 of file v4math.h.

References mV.

BOOL LLVector4::isExactlyClear (  )  const [inline]

Definition at line 87 of file v4math.h.

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

Referenced by LLWorld::resolveStepHeightGlobal().

BOOL LLVector4::isExactlyZero (  )  const [inline]

Definition at line 88 of file v4math.h.

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

Referenced by LLAgent::calcCameraPositionTargetGlobal().

BOOL LLVector4::isFinite (  )  const [inline]

Definition at line 188 of file v4math.h.

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

F32 LLVector4::magVec (  )  const [inline]

Definition at line 253 of file v4math.h.

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

Referenced by dist_vec().

F32 LLVector4::magVecSquared (  )  const [inline]

Definition at line 258 of file v4math.h.

References mV, VX, VY, and VZ.

Referenced by dist_vec_squared().

F32 LLVector4::normVec (  )  [inline]

Definition at line 384 of file v4math.h.

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

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

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

Definition at line 98 of file v4math.h.

References mV.

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

Definition at line 97 of file v4math.h.

References mV.

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

Definition at line 72 of file v4math.cpp.

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

Definition at line 66 of file v4math.cpp.

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

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

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().

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

Definition at line 243 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 235 of file v4math.h.

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

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

Definition at line 227 of file v4math.h.

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

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

Definition at line 219 of file v4math.h.

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

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

Definition at line 211 of file v4math.h.

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

Referenced by LLPipeline::generateReflectionMap(), LLVOAvatar::idleUpdate(), LLPlane::operator=(), LLDrawPoolAvatar::renderAvatars(), LLDrawPoolTerrain::renderFull2TU(), LLDrawPoolTerrain::renderFull4TU(), LLDrawPoolTerrain::renderFull4TUShader(), renderOctree(), LLDrawPoolTerrain::renderSimple(), and LLPlane::setVec().

void LLVector4::zeroVec (  )  [inline]

Definition at line 203 of file v4math.h.

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


Friends And Related Function Documentation

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

Definition at line 299 of file v4math.h.

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

Definition at line 294 of file v4math.h.

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

Definition at line 277 of file v4math.h.

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

Definition at line 341 of file v4math.h.

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

Definition at line 311 of file v4math.h.

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

Definition at line 282 of file v4math.h.

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

Definition at line 334 of file v4math.h.

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

Definition at line 265 of file v4math.h.

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

Definition at line 318 of file v4math.h.

LLVector4 operator- ( const LLVector4 a  )  [friend]

Definition at line 358 of file v4math.h.

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

Definition at line 271 of file v4math.h.

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

Definition at line 326 of file v4math.h.

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

Definition at line 287 of file v4math.h.

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

Definition at line 349 of file v4math.h.

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

Definition at line 103 of file v4math.cpp.

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

Definition at line 304 of file v4math.h.


Member Data Documentation

F32 LLVector4::mV[LENGTHOFVECTOR4]

Definition at line 50 of file v4math.h.

Referenced by abs(), LLTemplateMessageBuilder::addVector4(), LLPolyMorphTarget::apply(), LLPolyMorphTarget::applyMask(), LLDrawPoolBump::beginShiny(), LLAgent::calcCameraPositionTargetGlobal(), clearVec(), LLPlane::dist(), LLPolyVertexMask::generateMask(), getValue(), LLManipTranslate::highlightManipulators(), LLVOAvatar::idleUpdate(), LLMatrix4::initMatrix(), LLMatrix4::initRows(), isExactlyClear(), isExactlyZero(), isFinite(), ll_sd_from_vector4(), ll_vector4_from_sd(), LLMatrix4::LLMatrix4(), LLQuaternion::LLQuaternion(), LLVector3::LLVector3(), LLVector4(), magVec(), magVecSquared(), normVec(), operator[](), LLDataPackerAsciiFile::packVector4(), LLDataPackerAsciiBuffer::packVector4(), LLDataPackerBinaryBuffer::packVector4(), LLViewerObject::processUpdateMessage(), LLManipRotate::render(), LLDrawPoolAvatar::renderAvatars(), LLDrawPoolTerrain::renderFull2TU(), LLDrawPoolTerrain::renderFull4TU(), LLDrawPoolTerrain::renderFull4TUShader(), renderOctree(), LLDrawPoolTerrain::renderSimple(), LLVOAvatar::renderSkinned(), renderTexturePriority(), LLManipTranslate::renderTranslationHandles(), LLWorld::resolveStepHeightGlobal(), rotate_vector(), LLCoordFrame::rotateToAbsolute(), LLCoordFrame::rotateToLocal(), scaleVec(), LLQuaternion::setQuat(), LLMatrix4::setTranslation(), LLPipeline::setupAvatarLights(), LLPipeline::setupHWLights(), setVec(), LLVector3::setVec(), LLCoordFrame::transformToAbsolute(), LLCoordFrame::transformToLocal(), LLDataPackerAsciiFile::unpackVector4(), LLDataPackerAsciiBuffer::unpackVector4(), LLDataPackerBinaryBuffer::unpackVector4(), LLVOAvatar::updateCharacter(), LLViewerJointMesh::uploadJointMatrices(), vec4to3(), and zeroVec().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:56 2010 for Second Life Viewer by  doxygen 1.4.7