LLVector3 Class Reference

#include <v3math.h>

Collaboration diagram for LLVector3:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLVector3 ()
 LLVector3 (const F32 x, const F32 y, const F32 z)
 LLVector3 (const F32 *vec)
 LLVector3 (const LLVector3d &vec)
 LLVector3 (const LLVector4 &vec)
 LLVector3 (const LLSD &sd)
LLSD getValue () const
void setValue (const LLSD &sd)
const LLVector3operator= (const LLSD &sd)
BOOL isFinite () const
BOOL clamp (F32 min, F32 max)
void quantize16 (F32 lowerxy, F32 upperxy, F32 lowerz, F32 upperz)
void quantize8 (F32 lowerxy, F32 upperxy, F32 lowerz, F32 upperz)
void snap (S32 sig_digits)
BOOL abs ()
void clear ()
void setZero ()
void clearVec ()
void zeroVec ()
void set (F32 x, F32 y, F32 z)
void set (const LLVector3 &vec)
void set (const F32 *vec)
const LLVector3set (const LLVector4 &vec)
const LLVector3set (const LLVector3d &vec)
void setVec (F32 x, F32 y, F32 z)
void setVec (const LLVector3 &vec)
void setVec (const F32 *vec)
const LLVector3setVec (const LLVector4 &vec)
const LLVector3setVec (const LLVector3d &vec)
F32 length () const
F32 lengthSquared () const
F32 magVec () const
F32 magVecSquared () const
F32 normalize ()
F32 normVec ()
BOOL inRange (F32 min, F32 max) const
const LLVector3rotVec (F32 angle, const LLVector3 &vec)
const LLVector3rotVec (F32 angle, F32 x, F32 y, F32 z)
const LLVector3rotVec (const LLMatrix3 &mat)
const LLVector3rotVec (const LLQuaternion &q)
const LLVector3scaleVec (const LLVector3 &vec)
LLVector3 scaledVec (const LLVector3 &vec) const
BOOL isNull () const
BOOL isExactlyZero () const
F32 operator[] (int idx) const
F32operator[] (int idx)

Static Public Member Functions

static BOOL parseVector3 (const char *buf, LLVector3 *value)

Public Attributes

F32 mV [LENGTHOFVECTOR3]

Static Public Attributes

static const LLVector3 zero
static const LLVector3 x_axis
static const LLVector3 y_axis
static const LLVector3 z_axis
static const LLVector3 x_axis_neg
static const LLVector3 y_axis_neg
static const LLVector3 z_axis_neg
static const LLVector3 all_one

Friends

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


Detailed Description

Definition at line 48 of file v3math.h.


Constructor & Destructor Documentation

LLVector3::LLVector3 ( void   )  [inline]

Definition at line 165 of file v3math.h.

References mV.

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

Here is the caller graph for this function:

LLVector3::LLVector3 ( const F32  x,
const F32  y,
const F32  z 
) [inline]

Definition at line 172 of file v3math.h.

References mV, VX, VY, and VZ.

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

Definition at line 179 of file v3math.h.

References mV, VX, VY, and VZ.

LLVector3::LLVector3 ( const LLVector3d vec  )  [explicit]

Definition at line 207 of file v3math.cpp.

References LLVector3d::mdV, mV, VX, VY, and VZ.

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

Definition at line 214 of file v3math.cpp.

References LLVector4::mV, mV, VX, VY, and VZ.

LLVector3::LLVector3 ( const LLSD sd  ) 

Definition at line 221 of file v3math.cpp.

References setValue().

Here is the call graph for this function:


Member Function Documentation

LLSD LLVector3::getValue (  )  const

void LLVector3::setValue ( const LLSD sd  ) 

Definition at line 235 of file v3math.cpp.

References mV.

Referenced by LLVector3(), operator=(), and LLFloaterSettingsDebug::updateControl().

Here is the caller graph for this function:

const LLVector3 & LLVector3::operator= ( const LLSD sd  ) 

Definition at line 242 of file v3math.cpp.

References setValue().

Here is the call graph for this function:

BOOL LLVector3::isFinite (  )  const [inline]

BOOL LLVector3::clamp ( F32  min,
F32  max 
)

Definition at line 61 of file v3math.cpp.

References FALSE, mV, and TRUE.

Referenced by LLAgent::calcCameraMinDistance(), LLAgent::calcFocusOffset(), LLToolBrushLand::modifyLandInSelectionGlobal(), LLBVHLoader::serialize(), and LLFollowCamParams::setFocusOffset().

Here is the caller graph for this function:

void LLVector3::quantize16 ( F32  lowerxy,
F32  upperxy,
F32  lowerz,
F32  upperz 
)

Definition at line 90 of file v3math.cpp.

References F32_to_U16(), mV, U16_to_F32(), VX, VY, and VZ.

Referenced by LLViewerObject::processUpdateMessage(), LLKeyframeMotion::serialize(), and LLBVHLoader::serialize().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVector3::quantize8 ( F32  lowerxy,
F32  upperxy,
F32  lowerz,
F32  upperz 
)

Definition at line 105 of file v3math.cpp.

References F32_to_U8(), mV, U8_to_F32(), VX, VY, and VZ.

Referenced by LLViewerObject::processUpdateMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVector3::snap ( S32  sig_digits  ) 

Definition at line 113 of file v3math.cpp.

References mV, snap_to_sig_figs(), VX, VY, and VZ.

Here is the call graph for this function:

BOOL LLVector3::abs (  ) 

void LLVector3::clear ( void   )  [inline]

Definition at line 206 of file v3math.h.

References mV.

void LLVector3::setZero ( void   )  [inline]

Definition at line 213 of file v3math.h.

References mV.

void LLVector3::clearVec ( void   )  [inline]

void LLVector3::zeroVec ( void   )  [inline]

Definition at line 227 of file v3math.h.

References mV.

Referenced by LLTemplateMessageReader::getVector3(), LLListener::init(), LLPolyMorphData::LLPolyMorphData(), and LLPolyMorphData::loadBinary().

Here is the caller graph for this function:

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

Definition at line 234 of file v3math.h.

References mV, VX, VY, and VZ.

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

Definition at line 241 of file v3math.h.

References mV.

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

Definition at line 248 of file v3math.h.

References mV.

const LLVector3 & LLVector3::set ( const LLVector4 vec  ) 

Definition at line 183 of file v3math.cpp.

References LLVector4::mV, and mV.

const LLVector3 & LLVector3::set ( const LLVector3d vec  ) 

Definition at line 175 of file v3math.cpp.

References LLVector3d::mdV, and mV.

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

Definition at line 256 of file v3math.h.

References mV, VX, VY, and VZ.

Referenced by LLBBox::addBBoxAgent(), LLToolPlacer::addObject(), audio_update_listener(), LLAgent::autoPilot(), LLJointStateBlender::blendJointStates(), LLSpatialGroup::boundObjects(), LLAgent::calcCameraFOVZoomFactor(), LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcFocusOffset(), LLHUDEffectPointAt::calcTargetPosition(), LLHUDEffectLookAt::calcTargetPosition(), LLCamera::calculateFrustumPlanes(), LLManipScale::cornerToUnitVector(), LLSurface::create(), LLManipRotate::dragConstrained(), LLManipScale::dragCorner(), LLManipScale::dragFace(), LLVolume::generate(), LLPipeline::generateWaterReflection(), LLPath::genNGon(), LLProfile::genNGon(), LLSphere::getBoundingSphere(), LLFace::getGeometryVolume(), LLVOAvatar::getGround(), LLAgent::getPosAgentFromGlobal(), LLViewerRegion::getPosRegionFromGlobal(), LLWorldMapView::globalPosToView(), LLNetMap::globalPosToView(), handle_sit_or_stand(), LLToolSelect::handleObjectSelection(), hud_render_text(), LLAppViewer::idle(), LLXform::init(), LLParcel::init(), LLListener::init(), init_audio(), LLCoordFrame::LLCoordFrame(), LLJointSolverRP3::LLJointSolverRP3(), LLMatrix3::LLMatrix3(), LLPolySkeletalDistortion::LLPolySkeletalDistortion(), LLPrimitive::LLPrimitive(), LLTriangleLineSegmentIntersect(), LLBVHLoader::loadTranslationTable(), LLAudioEngine::mapWindVecToPan(), LLAudioEngine::mapWindVecToPitch(), LLViewerJoystick::moveObjects(), LLV4Matrix4::multiply(), LLV4Matrix3::multiply(), LLTargetingMotion::onUpdate(), LLWalkAdjustMotion::onUpdate(), LLEyeMotion::onUpdate(), parseVector3(), LLSpatialPartition::pickDrawable(), LLViewerObject::processUpdateMessage(), LLViewerCamera::projectScreenToPosAgent(), ray_cylinder(), ray_sphere(), LLVolumeImplFlexible::remapSections(), LLNetMap::renderScaledPointGlobal(), LLManipTranslate::renderSnapGuides(), LLManipRotate::renderSnapGuides(), LLManipTranslate::renderTranslationHandles(), LLCoordFrame::reset(), LLCoordFrame::resetAxes(), LLVOAvatar::resolveHeightGlobal(), LLSurface::resolveNormalGlobal(), LLWorld::resolveStepHeightGlobal(), LLSelectMgr::selectionMove(), LLSelectMgr::sendListToRegions(), LLBVHLoader::serialize(), LLPrimitive::setAcceleration(), LLPrimitive::setAngularVelocity(), LLVolumeImplFlexible::setAttributesOfAllSections(), LLCoordFrame::setAxes(), LLCoordFrame::setOrigin(), LLSurfacePatch::setOriginGlobal(), LLFloaterReporter::setPosBox(), LLXform::setPosition(), LLAgent::setRegion(), LLXform::setScale(), LLPipeline::setupHWLights(), LLPrimitive::setVelocity(), LLQuaternion::shortestArc(), LLDebugVarMessageBox::slider_changed(), LLToolGrab::startGrab(), LLManipScale::stretchFace(), LLFlexibleObjectData::unpack(), LLFollowCam::update(), LLAudioChannelFMOD::update3DPosition(), LLFollowCam::updateBehindnessConstraint(), LLSprite::updateFace(), LLAgent::updateFocusOffset(), LLViewerCamera::updateFrustumPlanes(), LLVOTree::updateGeometry(), LLSelectMgr::updatePointAt(), LLAudioSource::updatePriority(), LLManipScale::updateSnapGuides(), LLVOTree::updateSpatialExtents(), LLViewerObject::updateSpatialExtents(), LLAudioEngine_FMOD::updateWind(), and LLFloaterReporter::~LLFloaterReporter().

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

Definition at line 264 of file v3math.h.

References mV.

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

Definition at line 272 of file v3math.h.

References mV.

const LLVector3 & LLVector3::setVec ( const LLVector4 vec  ) 

Definition at line 199 of file v3math.cpp.

References LLVector4::mV, and mV.

const LLVector3 & LLVector3::setVec ( const LLVector3d vec  ) 

Definition at line 191 of file v3math.cpp.

References LLVector3d::mdV, and mV.

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

Definition at line 326 of file v3math.h.

References fsqrtf, and mV.

Referenced by LLSphere::getBoundingSphere().

Here is the caller graph for this function:

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

Definition at line 331 of file v3math.h.

References mV.

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

Definition at line 336 of file v3math.h.

References fsqrtf, and mV.

Referenced by LLBVHLoader::applyTranslations(), LLAgent::autoPilot(), LLAgent::calcCameraFOVZoomFactor(), LLAgent::calcCameraPositionTargetGlobal(), LLSpatialPartition::calcDistance(), LLVOVolume::calcLOD(), LLPipeline::calcPixelArea(), LLVOSky::calcSkyColorWLVert(), LLGlobalEconomy::calculateLightRent(), LLAgent::cameraOrbitIn(), LLManipRotate::dragConstrained(), LLVelocityBar::draw(), LLVOVolume::generateSilhouette(), LLViewerObject::getBinRadius(), LLToolsLookAtSelection::handleEvent(), LLAgent::handleScrollWheel(), LLCamera::heightInPixels(), LLManipRotate::highlightManipulators(), hud_render_text(), LLVOTree::idleUpdate(), LLVOAvatar::idleUpdate(), LLVOSky::initSunDirection(), LLPolyMorphData::loadBinary(), LLAudioEngine::mapWindVecToGain(), LLFlyAdjustMotion::onUpdate(), LLWalkAdjustMotion::onUpdate(), LLManipScale::partToMaxScale(), LLManipScale::partToMinScale(), LLFloaterAnimPreview::postBuild(), LLViewerCamera::projectPosAgentToScreen(), LLViewerCamera::projectPosAgentToScreenEdge(), ray_cylinder(), LLSelectNode::renderOneSilhouette(), LLDrawPoolTree::renderTree(), LLVolume::sculptGetSurfaceArea(), send_agent_update(), LLPanelObject::sendRotation(), LLVOTree::setPixelAreaAndAngle(), LLVOGrass::setPixelAreaAndAngle(), LLVOAvatar::setPixelAreaAndAngle(), LLVOSky::setSunDirection(), LLJointSolverRP3::setupJoints(), LLVOSky::setWind(), LLJointSolverRP3::solve(), LLManipScale::stretchFace(), LLViewerParcelMediaAutoPlay::tick(), LLDebugText::update(), LLViewerPartSourceScript::update(), LLFollowCam::update(), LLFollowCam::updateBehindnessConstraint(), LLSurfacePatch::updateCameraDistanceRegion(), LLVOAvatar::updateCharacter(), LLSpatialGroup::updateDistance(), LLDrawable::updateDistance(), LLVOVolume::updateRadius(), LLVOSky::updateReflectionGeometry(), LLManipScale::updateSnapGuides(), LLVOTree::updateSpatialExtents(), LLSpatialBridge::updateSpatialExtents(), LLVOSky::updateSunHaloGeometry(), LLVOTextBubble::updateTextures(), LLSurfacePatch::updateVerticalStats(), LLCamera::visibleDistance(), and LLCamera::visibleHorizDistance().

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

F32 LLVector3::normalize ( void   )  [inline]

F32 LLVector3::normVec ( void   )  [inline]

Definition at line 302 of file v3math.h.

References FP_MAG_THRESHOLD, fsqrtf, and mV.

Referenced by LLPolyMorphTarget::apply(), LLKeyframeMotion::applyConstraint(), LLAgent::autoPilot(), LLAgent::calcCameraMinDistance(), LLAgent::calcCameraPositionTargetGlobal(), LLSpatialPartition::calcDistance(), LLAgent::calcFocusOffset(), LLSurfacePatch::calcNormal(), LLCamera::calculateWorldFrustumPlanes(), LLAgent::cameraOrbitOver(), LLAgent::changeCameraToCustomizeAvatar(), LLAgent::changeCameraToThirdPerson(), LLViewerJointAttachment::clampObjectPosition(), LLJoint::clampRotation(), confirm_replace_attachment(), LLVolumeFace::createCap(), LLVolumeFace::createUnCutCubeCap(), LLVolumeImplFlexible::doFlexibleUpdate(), LLManipRotate::dragConstrained(), LLManipScale::dragCorner(), LLManipRotate::dragUnconstrained(), LLViewerJoint::drawBone(), dtReflection(), LLManipRotate::findNearestPointOnRing(), LLPipeline::generateImpostor(), LLVolume::generateSilhouetteVertices(), LLProfile::genNormals(), LLFace::genVolumeBBoxes(), LLSphere::getBoundingSphere(), LLVOPartGroup::getGeometry(), LLVOGrass::getGeometry(), LLVOClouds::getGeometry(), LLFace::getGeometryVolume(), LLVOAvatar::getImpostorValues(), LLManip::getManipNormal(), LLVOAvatar::getOffObject(), LLManip::getSubdivisionLevel(), LLToolsLookAtSelection::handleEvent(), LLManipTranslate::handleHover(), LLManipRotate::handleMouseDownOnPart(), LLToolSelect::handleObjectSelection(), LLManipTranslate::highlightManipulators(), LLManipRotate::highlightManipulators(), LLVOTree::idleUpdate(), LLVOAvatar::idleUpdate(), LLVOSky::initSkyTextureDirs(), LLVOSky::initSunDirection(), LLManipRotate::intersectRayWithSphere(), linesegment_box(), linesegment_circle(), linesegment_cylinder(), linesegment_prism(), linesegment_pyramid(), linesegment_quadrangle(), linesegment_sphere(), linesegment_tetrahedron(), linesegment_triangle(), LLPolyMorphData::loadBinary(), LLBVHLoader::loadTranslationTable(), LLCoordFrame::lookAt(), LLAgent::lookAtLastChat(), LLCoordFrame::lookDir(), LLCubeMap::map(), LLAudioEngine::mapWindVecToPan(), LLAudioEngine::mapWindVecToPitch(), LLViewerWindow::mouseDirectionGlobal(), LLManipRotate::mouseToRay(), LLViewerJoystick::moveFlycam(), LLManip::nearestPointOnLineFromMouse(), LLKeyframeFallMotion::onActivate(), LLTargetingMotion::onUpdate(), LLWalkAdjustMotion::onUpdate(), LLKeyframeStandMotion::onUpdate(), LLEyeMotion::onUpdate(), LLHeadRotMotion::onUpdate(), LLEditingMotion::onUpdate(), LLMatrix3::orthogonalize(), LLCoordFrame::orthonormalize(), LLCubeMap::paintIn(), planeFromPoints(), process_agent_movement_complete(), LLSky::propagateHeavenlyBodies(), LLWLParamManager::propagateParameters(), ray_cylinder(), ray_quadrangle(), ray_triangle(), LLManipRotate::render(), LLManipScale::renderAxisHandle(), LLManipScale::renderGuidelinesPart(), LLHUDIcon::renderIcon(), LLVOAvatar::renderImpostor(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLManipRotate::renderSnapGuides(), LLManipTranslate::renderTranslationHandles(), LLAgent::resetCamera(), LLAgent::resetView(), LLSurface::resolveNormalGlobal(), LLViewerCamera::roundToPixel(), LLJointSolverRP3::setBAxis(), LLAgent::setFocusOnAvatar(), LLSprite::setNormal(), LLJointSolverRP3::setPoleVector(), LLVOSky::setSunDirection(), LLAgent::setupSitCamera(), LLPlane::setVec(), LLDrawPoolWater::shade(), LLAgent::slamLookAt(), LLJointSolverRP3::solve(), LLAgent::startAutoPilotGlobal(), LLWaterParamManager::update(), LLViewerPartSourceScript::update(), LLFollowCam::updateBehindnessConstraint(), LLVOAvatar::updateCharacter(), LLSprite::updateFace(), LLVOSky::updateFog(), LLViewerCamera::updateFrustumPlanes(), LLVOWLSky::updateGeometry(), LLVOSky::updateGeometry(), LLVOGround::updateGeometry(), LLVOSky::updateHeavenlyBodyGeometry(), LLVOSky::updateReflectionGeometry(), LLVolumeImplFlexible::updateRelativeXform(), LLVOSky::updateSky(), LLManipScale::updateSnapGuides(), LLVOWLSky::updateStarColors(), LLVOSky::updateSunHaloGeometry(), LLHUDText::updateVisibility(), and LLManipRotate::updateVisiblity().

BOOL LLVector3::inRange ( F32  min,
F32  max 
) const [inline]

Definition at line 346 of file v3math.h.

References mV.

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

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

Definition at line 149 of file v3math.cpp.

References isExactlyZero().

Here is the call graph for this function:

const LLVector3 & LLVector3::rotVec ( const LLMatrix3 mat  ) 

Definition at line 128 of file v3math.cpp.

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

Definition at line 134 of file v3math.cpp.

const LLVector3 & LLVector3::scaleVec ( const LLVector3 vec  ) 

LLVector3 LLVector3::scaledVec ( const LLVector3 vec  )  const

Definition at line 168 of file v3math.cpp.

References LLVector3(), and scaleVec().

Referenced by LLCamera::AABBInFrustum(), LLCamera::AABBInFrustumNoFarClip(), LLVOVolume::calcLOD(), drawBox(), drawBoxOutline(), and render_cube_map().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLVector3::isNull (  )  const [inline]

Definition at line 506 of file v3math.h.

References F_APPROXIMATELY_ZERO, FALSE, mV, TRUE, VX, VY, and VZ.

Referenced by linesegment_box(), LLCoordFrame::lookDir(), and LLAgent::resetAxes().

Here is the caller graph for this function:

BOOL LLVector3::isExactlyZero (  )  const [inline]

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

Definition at line 123 of file v3math.h.

References mV.

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

Definition at line 124 of file v3math.h.

References mV.

BOOL LLVector3::parseVector3 ( const char *  buf,
LLVector3 value 
) [static]

Definition at line 263 of file v3math.cpp.

References FALSE, mV, NULL, S32, setVec(), and TRUE.

Referenced by LLXmlTreeNode::getFastAttributeVector3().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

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

Definition at line 353 of file v3math.h.

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

Definition at line 359 of file v3math.h.

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

Definition at line 365 of file v3math.h.

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

Definition at line 370 of file v3math.h.

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

Definition at line 381 of file v3math.h.

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

Definition at line 375 of file v3math.h.

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

Definition at line 386 of file v3math.h.

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

Definition at line 391 of file v3math.h.

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

Definition at line 398 of file v3math.h.

bool operator< ( const LLVector3 a,
const LLVector3 b 
) [friend]

Definition at line 405 of file v3math.h.

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

Definition at line 414 of file v3math.h.

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

Definition at line 422 of file v3math.h.

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

Definition at line 430 of file v3math.h.

const LLVector3& operator*= ( LLVector3 a,
const LLVector3 b 
) [friend]

Definition at line 445 of file v3math.h.

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

Definition at line 437 of file v3math.h.

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

Definition at line 453 of file v3math.h.

const LLVector3& operator*= ( LLVector3 a,
const LLQuaternion b 
) [friend]

Definition at line 248 of file v3math.cpp.

LLVector3 operator- ( const LLVector3 a  )  [friend]

Definition at line 462 of file v3math.h.

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

Definition at line 121 of file v3math.cpp.


Member Data Documentation

Definition at line 51 of file v3math.h.

Referenced by AABBSphereIntersect(), abs(), LLBBox::addBBoxAgent(), LLBBoxLocal::addPoint(), LLBBox::addPointLocal(), LLTemplateMessageBuilder::addQuat(), LLFloaterScriptDebug::addScriptLine(), LLTemplateMessageBuilder::addVector3(), LLSelectMgr::adjustTexturesByScale(), LLVOVolume::agentPositionToVolume(), LLPolyMorphTarget::apply(), LLPolyMorphTarget::applyMask(), audio_update_wind(), LLAgent::autoPilot(), azimuth(), LLSpatialGroup::boundObjects(), LLAgent::buildLocationString(), LLSpatialGroup::buildOcclusion(), bytestream2vector(), calc_binormal_from_triangle(), calc_shame(), LLAgent::calcCameraMinDistance(), LLAgent::calcCameraPositionTargetGlobal(), LLSpatialPartition::calcDistance(), LLAgent::calcFocusOffset(), LLVOSky::calcSkyColorInDir(), LLViewerParcelMgr::callbackDivideLand(), LLViewerParcelMgr::callbackJoinLand(), LLViewerCamera::cameraUnderWater(), LLAgent::changeCameraToCustomizeAvatar(), LLAgent::changeCameraToThirdPerson(), LLWorldMapView::checkItemHit(), clamp(), clear(), clearVec(), clip_side_to_horizon(), LLWorld::clipToVisibleRegions(), LLVOAvatar::computeBodySize(), LLLandmark::constructFromString(), LLBBox::containsPointLocal(), LLSurface::containsPosition(), LLVOSky::cosHorizon(), LLVolumeFace::createCap(), LLKeyframeMotion::deserialize(), LLStartUp::dispatchURL(), dist_vec(), dist_vec_squared(), dist_vec_squared2D(), LLVolumeImplFlexible::doFlexibleUpdate(), LLVolumeImplFlexible::doIdleUpdate(), LLManipRotate::dragConstrained(), LLManipScale::dragCorner(), LLManipScale::dragFace(), LLWorldMapView::draw(), LLNetMap::draw(), LLHorizontalCompass::draw(), LLCompass::draw(), LLDebugVarMessageBox::draw(), draw_axes(), draw_line_cube(), LLWorldMapView::drawImage(), LLWorldMapView::drawImageStack(), LLWorldMapView::drawTracking(), LLNetMap::drawTracking(), dtReflection(), earlyFail(), LLManipScale::edgeToUnitVector(), elevation_from_vector(), LLSurfacePatch::eval(), LLBBox::expand(), LLBBoxLocal::expand(), LLParcel::exportStream(), LLParcel::extendAABB(), LLVOVolume::genBBoxes(), LLVolume::generate(), LLVLComposition::generateHeights(), LLPipeline::generateReflectionMap(), LLVOVolume::generateSilhouette(), LLPipeline::generateWaterReflection(), LLSurface::generateWaterTexture(), LLProfile::genNGon(), LLProfile::genNormals(), LLFace::genVolumeBBoxes(), get_occlusion_indices(), LLVolumeImplFlexible::getAnchorPosition(), LLQuaternion::getAngleAxis(), LLXMLNode::getAttributeVector3(), LLWind::getAverage(), LLVOVolume::getBinRadius(), LLVOPartGroup::getBinRadius(), LLSphere::getBoundingSphere(), LLParcel::getCenterpoint(), LLWind::getCloudVelocity(), LLManipRotate::getConstraintAxis(), LLCloudLayer::getDensityRegion(), LLWaterParamManager::getFogDensity(), LLVOGrass::getGeometry(), LLFace::getGeometryVolume(), LLSimInfo::getGlobalPos(), LLLandmark::getGlobalPos(), LLAgent::getHomePosGlobal(), LLVOAvatar::getImpostorValues(), LLDrawable::getIntensity(), LLViewerObject::getMidScale(), LLManipTranslate::getMinGridScale(), LLManip::getMousePointOnPlaneGlobal(), LLManipRotate::getObjectAxisClosestToMouse(), LLVOAvatar::getOffObject(), LLCoordFrame::getOpenGLRotation(), LLCoordFrame::getOpenGLTransform(), LLCoordFrame::getOpenGLTranslation(), LLSurfacePatch::getPointAgent(), LLTemplateMessageReader::getQuat(), LLPanelDirFind::getSearchURLSuffix(), LLPanelVolume::getState(), LLPanelObject::getState(), LLSurfacePatch::getTexCoords(), LLVolume::getTriangleIndices(), getValue(), LLWaterParamSet::getVector3(), LLTemplateMessageReader::getVector3(), LLWind::getVelocity(), LLAgent::getVelocityZ(), gl_segmented_rect_3d_tex(), gl_stippled_line_3d(), LLWorldMapView::globalPosToView(), LLNetMap::globalPosToView(), handle_claim_public_land(), LLToolGun::handleHover(), LLManipTranslate::handleHover(), LLToolBrushLand::handleMouseDown(), LLToolSelect::handleObjectSelection(), LLManipTranslate::highlightIntersection(), LLManipTranslate::highlightManipulators(), LLManipScale::highlightManipulators(), hud_render_text(), LLVOAvatar::idleUpdate(), LLParcel::importStream(), LLViewerParcelMgr::inAgentParcel(), LLCloudGroup::inGroup(), LLMatrix4::initAll(), inRange(), isExactlyZero(), isFinite(), isNull(), LLViewerParcelOverlay::isOwned(), LLViewerParcelOverlay::isOwnedGroup(), LLViewerParcelOverlay::isOwnedOther(), LLViewerParcelOverlay::isOwnedSelf(), LLViewerParcelOverlay::isSoundLocal(), LLVOSky::isSunUp(), lat2xyz(), lat2xyz_rad(), length(), lengthSquared(), lerp(), ll_sd_from_vector3(), ll_vector3_from_sd(), LLLineSegmentAABB(), LLQuaternion::LLQuaternion(), LLRayAABB(), LLSphereAABB(), LLVector3(), LLVector3d::LLVector3d(), LLVector4::LLVector4(), LLVOSky::LLVOSky(), LLPolyMorphData::loadBinary(), LLControlGroup::loadFromFileLegacy(), LLPolyMeshSharedData::loadMesh(), LLVOAvatar::loadSkeletonNode(), LLBVHLoader::loadTranslationTable(), lsa_fprint_heap(), lsa_print_heap(), magVec(), magVecSquared(), LLCubeMap::map(), LLToolBrushLand::modifyLandAtPointGlobal(), LLToolBrushLand::modifyLandInSelectionGlobal(), LLViewerWindow::mouseDirectionCamera(), LLViewerWindow::mousePointOnLandGlobal(), LLViewerJoystick::moveFlycam(), LLV4Matrix4::multiply(), LLV4Matrix3::multiply(), LLLine::nearestApproach(), LLManip::nearestPointOnLineFromMouse(), normalize(), normVec(), LLKeyframeFallMotion::onActivate(), LLFloaterSettingsDebug::onCommitSettings(), LLFlyAdjustMotion::onUpdate(), LLWalkAdjustMotion::onUpdate(), LLHeadRotMotion::onUpdate(), operator!=(), operator%(), operator%=(), LLManipTranslate::compare_manipulators::operator()(), LLManipScale::compare_manipulators::operator()(), lessVertex::operator()(), operator*(), operator*=(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<<(), WaterVector3Control::operator=(), operator==(), operator[](), LLListener_FMOD::orient(), LLViewerParcelOverlay::ownership(), LLPartSysData::pack(), LLSelectMgr::packMultipleUpdate(), LLDataPackerAsciiFile::packVector3(), LLDataPackerAsciiBuffer::packVector3(), LLDataPackerBinaryBuffer::packVector3(), LLImagePreviewSculpted::pan(), LLImagePreviewAvatar::pan(), LLPreviewAnimation::pan(), parseVector3(), LLManipScale::partToMaxScale(), LLManipScale::partToMinScale(), planarProjection(), LLViewerRegion::pointInRegionGlobal(), LLViewerPartGroup::posInGroup(), LLScriptLibData::print(), print_pushargv(), LLScriptLibData::print_separator(), LLNameValue::printData(), LLScriptLSOParse::printGlobals(), process_agent_movement_complete(), process_script_teleport_request(), process_set_follow_cam_properties(), process_sound_trigger(), LLViewerParcelMgr::processParcelProperties(), LLViewerObject::processUpdateMessage(), LLCubeMap::project(), LLViewerCamera::projectPosAgentToScreen(), LLViewerCamera::projectPosAgentToScreenEdge(), LLAgent::propagate(), LLWLParamManager::propagateParameters(), quantize16(), quantize8(), randomize_sphere(), ray_box(), ray_cylinder(), ray_prism(), ray_pyramid(), ray_tetrahedron(), LLCoordFrame::readOrientation(), LLSpatialGroup::rebound(), LLStatusBar::refresh(), LLPanelLandOptions::refresh(), LLURLDispatcherImpl::regionHandleCallback(), LLURLDispatcherImpl::regionNameCallback(), LLVolumeImplFlexible::remapSections(), LLVoiceVisualizer::render(), LLManipScale::render(), LLManipRotate::render(), LLHUDEffectPointAt::render(), LLHUDEffectLookAt::render(), LLHUDEffectBeam::render(), LLImagePreviewSculpted::render(), LLDrawPoolWLSky::render(), LLDrawPoolWater::render(), LLDrawPoolSky::render(), LLDrawPoolGround::render(), LLManipTranslate::renderArrow(), LLManipScale::renderAxisHandle(), LLTracker::renderBeacon(), LLPipeline::renderBloom(), LLViewerParcelMgr::renderCollisionSegments(), LLManipScale::renderCorners(), LLDrawPoolWLSky::renderDome(), LLManipScale::renderEdges(), LLManipScale::renderFaces(), LLManip::renderGuidelines(), LLHUDIcon::renderIcon(), LLViewerObjectList::renderObjectBeacons(), LLViewerObjectList::renderObjectsForMap(), renderOctree(), LLViewerParcelMgr::renderOneSegment(), LLSelectNode::renderOneSilhouette(), LLToolBrushLand::renderOverlay(), LLNetMap::renderPoint(), renderPoints(), LLViewerParcelOverlay::renderPropertyLines(), LLViewerParcelMgr::renderRect(), LLFace::renderSelectedUV(), LLViewerWindow::renderSelections(), LLSelectMgr::renderSilhouettes(), LLDrawPoolTerrain::renderSimple(), LLVOAvatar::renderSkinned(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLManipRotate::renderSnapGuides(), LLHUDText::renderText(), LLManipTranslate::renderTranslationHandles(), LLDrawPoolTree::renderTree(), LLWind::renderVectors(), LLManip::renderXYZ(), LLViewerParcelMgr::requestHoverParcelProperties(), LLAgent::resetCamera(), LLSurface::resolveHeightRegion(), LLSurface::resolvePatchRegion(), rotate_vector(), LLCoordFrame::rotateToAbsolute(), LLCoordFrame::rotateToLocal(), run_cast(), run_print(), run_pushargv(), LLSelectNode::saveTextureScaleRatios(), scaleVec(), sculpt_rgb_to_vector(), LLVolume::sculptGeneratePlaceholder(), LLSelectMgr::selectionMove(), LLViewerParcelMgr::selectLand(), LLPanelObject::sendPosition(), LLVoiceClient::sendPositionalUpdate(), LLKeyframeMotion::serialize(), LLBVHLoader::serialize(), LLVector4::set(), set(), LLQuaternion::setAngleAxis(), LLVolumeImplFlexible::setAttributesOfAllSections(), LLCoordFrame::setAxes(), LLPartData::setEndColor(), LLAgent::setFocusOnAvatar(), LLMatrix4::setFwdCol(), LLMatrix4::setFwdRow(), LLMatrix4::setLeftCol(), LLMatrix4::setLeftRow(), LLCoordFrame::setOrigin(), LLSurfacePatch::setOriginGlobal(), LLCoordFrame::setOriginX(), LLCoordFrame::setOriginY(), LLCoordFrame::setOriginZ(), LLPartSysData::setPartAccel(), LLViewerObject::setPixelAreaAndAngle(), LLFloaterReporter::setPosBox(), LLListener_FMOD::setPosition(), LLXform::setPositionX(), LLXform::setPositionY(), LLXform::setPositionZ(), LLQuaternion::setQuat(), LLMatrix3::setRows(), LLPartData::setStartColor(), LLAgent::setStartPosition(), LLVOSky::setSunDirection(), LLMatrix4::setTranslation(), setup_hud_matrices(), LLPipeline::setupAvatarLights(), LLVOAvatar::setupBone(), LLMatrix4::setUpCol(), LLPipeline::setupHWLights(), LLViewerParcelMgr::setupParcelBuy(), LLMatrix4::setUpRow(), LLAgent::setupSitCamera(), setValue(), LLVector4::setVec(), setVec(), LLVector3d::setVec(), setVecZ(), LLListener_FMOD::setVelocity(), LLPrimitive::setVelocityX(), LLPrimitive::setVelocityY(), LLPrimitive::setVelocityZ(), LLSurface::setWaterHeight(), LLJoint::setWorldPosition(), setZero(), LLDrawPoolWater::shade(), LLSpatialGroup::shift(), LLQuaternion::shortestArc(), LLDebugVarMessageBox::show(), LLAgent::slamLookAt(), snap(), LLAgent::startAutoPilotGlobal(), LLManipScale::stretchFace(), LLAgent::teleportViaLocation(), LLFloaterWorldMap::trackURL(), LLCoordFrame::transformToAbsolute(), LLCoordFrame::transformToLocal(), LLMatrix4::translate(), LLV4Matrix4::translate(), LLCoordFrame::translate(), LLListener_FMOD::translate(), LLManipScale::unitVectorToLocalBBoxExtent(), LLPartSysData::unpack(), LLQuaternion::unpackFromVector3(), LLDataPackerAsciiFile::unpackVector3(), LLDataPackerAsciiBuffer::unpackVector3(), LLDataPackerBinaryBuffer::unpackVector3(), LLWaterParamManager::update(), LLDebugText::update(), LLViewerPartSourceScript::update(), LLFollowCam::update(), LLAudioChannelFMOD::update3DPosition(), update_min_max(), LLFollowCam::updateBehindnessConstraint(), LLAgent::updateCamera(), LLViewerCamera::updateCameraLocation(), LLVOAvatar::updateCharacter(), LLSurfacePatch::updateCompositionStats(), LLDrawable::updateDistance(), LLVOSky::updateFog(), LLVOWLSky::updateGeometry(), LLVOWater::updateGeometry(), LLVOTree::updateGeometry(), LLVOSky::updateGeometry(), LLVOGround::updateGeometry(), LLVOAvatar::updateHeadOffset(), LLVOSky::updateHeavenlyBodyGeometry(), LLVOGrass::updateLOD(), LLXformMatrix::updateMatrix(), LLViewerPartSourceChat::updatePart(), LLViewerPartSourceSpiral::updatePart(), LLViewerPartGroup::updateParticles(), LLViewerParcelOverlay::updatePropertyLines(), LLVOSky::updateReflectionGeometry(), LLVOVolume::updateRelativeXform(), LLVolumeImplFlexible::updateRelativeXform(), LLVOAvatar::updateShadowFaces(), LLManipScale::updateSnapGuides(), LLVOTree::updateSpatialExtents(), LLSpatialBridge::updateSpatialExtents(), LLViewerObject::updateText(), LLSurfacePatch::updateVerticalStats(), LLHUDText::updateVisibility(), LLWorld::updateWaterObjects(), LLAudioEngine_FMOD::updateWind(), LLSpatialGroup::validate(), vec3to4(), vector2bytestream(), LLWorldMapView::viewPosToGlobal(), LLCoordFrame::writeOrientation(), and zeroVec().

const LLVector3 LLVector3::zero [static]

Definition at line 53 of file v3math.h.

Referenced by LLVOAvatar::buildSkeleton(), LLAgent::calcCameraPositionTargetGlobal(), LLAgent::changeCameraToFollow(), LLAgent::changeCameraToThirdPerson(), LLParcel::clearParcel(), LLHoverView::draw(), LLPolyMorphTarget::getAvgDistortion(), LLPolyMorphTarget::getFirstDistortion(), LLAudioEngine::getListenerPos(), LLPolyMorphTarget::getNextDistortion(), LLControlGroup::getVector3(), LLAgent::getVelocity(), LLPolyMorphTarget::getVertexDistortion(), LLVOAvatar::getVolumePos(), LLCharacter::getVolumePos(), gl_segmented_rect_3d_tex(), handle_dump_attachments(), LLObjectTouch::handleEvent(), LLManipTranslate::handleHover(), LLAgent::heardChat(), LLManipTranslate::highlightManipulators(), LLManipScale::highlightManipulators(), LLSky::init(), init_audio(), LLManipRotate::intersectRayWithSphere(), LLFollowCam::LLFollowCam(), LLImagePreviewAvatar::LLImagePreviewAvatar(), LLPreviewAnimation::LLPreviewAnimation(), LLFlyAdjustMotion::onActivate(), LLWalkAdjustMotion::onActivate(), LLPelvisFixMotion::onUpdate(), LLWalkAdjustMotion::onUpdate(), LLFloaterGodTools::processRegionInfo(), LLVOTree::processUpdateMessage(), LLVOGrass::processUpdateMessage(), LLViewerObject::processUpdateMessage(), LLVolumeImplFlexible::remapSections(), LLHUDText::renderText(), LLSelectMgr::repeatDuplicate(), run_cast(), LLSelectMgr::selectObjectAndFamily(), LLSelectMgr::selectObjectOnly(), LLSky::setOverrideSun(), LLVOAvatar::sitOnObject(), LLAgent::startTyping(), LLAgent::updateCamera(), and LLVOAvatar::updateCharacter().

const LLVector3 LLVector3::x_axis [static]

const LLVector3 LLVector3::y_axis [static]

const LLVector3 LLVector3::z_axis [static]

Definition at line 57 of file v3math.h.

Referenced by LLManipRotate::getObjectAxisClosestToMouse().

Definition at line 58 of file v3math.h.

Referenced by LLManipRotate::getObjectAxisClosestToMouse().

Definition at line 59 of file v3math.h.

Referenced by LLManipRotate::getObjectAxisClosestToMouse().

const LLVector3 LLVector3::all_one [static]

Definition at line 60 of file v3math.h.


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

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