llmath.h File Reference

Useful math constants and macros. More...

#include <cmath>
#include "lldefs.h"

Include dependency graph for llmath.h:

Go to the source code of this file.

Defines

#define llisnan(val)   std::isnan(val)
#define llfinite(val)   std::isfinite(val)
#define fsqrtf(x)   ((F32)sqrt((F64)(x)))
#define sqrtf(x)   ((F32)sqrt((F64)(x)))
#define cosf(x)   ((F32)cos((F64)(x)))
#define sinf(x)   ((F32)sin((F64)(x)))
#define tanf(x)   ((F32)tan((F64)(x)))
#define acosf(x)   ((F32)acos((F64)(x)))
#define powf(x, y)   ((F32)pow((F64)(x),(F64)(y)))
#define LL_EXP_INDEX   0
#define LL_MAN_INDEX   1
#define LL_EXP_A   (1048576 * OO_LN2)
#define LL_EXP_C   (60801)
#define LL_FAST_EXP(y)   (LLECO.n.i = llround(F32(LL_EXP_A*(y))) + (1072693248 - LL_EXP_C), LLECO.d)

Functions

BOOL is_approx_zero (F32 f)
BOOL is_approx_equal (F32 x, F32 y)
BOOL is_approx_equal (F64 x, F64 y)
BOOL is_approx_equal_fraction (F32 x, F32 y, U32 frac_bits)
BOOL is_approx_equal_fraction (F64 x, F64 y, U32 frac_bits)
S32 llabs (const S32 a)
F32 llabs (const F32 a)
F64 llabs (const F64 a)
S32 lltrunc (F32 f)
S32 lltrunc (F64 f)
S32 llfloor (F32 f)
S32 llceil (F32 f)
S32 llround (const F32 val)
F32 llround (F32 val, F32 nearest)
F64 llround (F64 val, F64 nearest)
F32 fastMagnitude (F32 a, F32 b)
F32 llfastpow (const F32 x, const F32 y)
F32 snap_to_sig_figs (F32 foo, S32 sig_figs)
F32 lerp (F32 a, F32 b, F32 u)
F32 lerp2d (F32 x00, F32 x01, F32 x10, F32 x11, F32 u, F32 v)
F32 ramp (F32 x, F32 a, F32 b)
F32 rescale (F32 x, F32 x1, F32 x2, F32 y1, F32 y2)
F32 clamp_rescale (F32 x, F32 x1, F32 x2, F32 y1, F32 y2)
F32 cubic_step (F32 x, F32 x0, F32 x1, F32 s0, F32 s1)
F32 cubic_step (F32 x)
F32 quadratic_step (F32 x, F32 x0, F32 x1, F32 s0, F32 s1)
F32 llsimple_angle (F32 angle)
U32 get_nearest_power_two (U32 val, U32 max_power_two)

Variables

const F32 GRAVITY = -9.8f
const F32 F_PI = 3.1415926535897932384626433832795f
const F32 F_TWO_PI = 6.283185307179586476925286766559f
const F32 F_PI_BY_TWO = 1.5707963267948966192313216916398f
const F32 F_SQRT2 = 1.4142135623730950488016887242097f
const F32 F_SQRT3 = 1.73205080756888288657986402541f
const F32 OO_SQRT2 = 0.7071067811865475244008443621049f
const F32 DEG_TO_RAD = 0.017453292519943295769236907684886f
const F32 RAD_TO_DEG = 57.295779513082320876798154814105f
const F32 F_APPROXIMATELY_ZERO = 0.00001f
const F32 F_LN2 = 0.69314718056f
const F32 OO_LN2 = 1.4426950408889634073599246810019f
const F32 FP_MAG_THRESHOLD = 0.0000001f
const F32 FAST_MAG_ALPHA = 0.960433870103f
const F32 FAST_MAG_BETA = 0.397824734759f
const F64 LL_DOUBLE_TO_FIX_MAGIC = 68719476736.0*1.5
const S32 LL_SHIFT_AMOUNT = 16
union {
   double   d
   struct {
      S32   i
      S32   j
   }   n
LLECO


Detailed Description

Useful math constants and macros.

LicenseInfo
firstyear=2000&license=viewergpl

Copyright (c) 2000-2008, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llmath.h.


Define Documentation

#define acosf (  )     ((F32)acos((F64)(x)))

Definition at line 74 of file llmath.h.

Referenced by slerp().

#define cosf (  )     ((F32)cos((F64)(x)))

#define fsqrtf (  )     ((F32)sqrt((F64)(x)))

#define LL_EXP_A   (1048576 * OO_LN2)

Definition at line 368 of file llmath.h.

#define LL_EXP_C   (60801)

Definition at line 369 of file llmath.h.

#define LL_EXP_INDEX   0

Definition at line 325 of file llmath.h.

#define LL_FAST_EXP (  )     (LLECO.n.i = llround(F32(LL_EXP_A*(y))) + (1072693248 - LL_EXP_C), LLECO.d)

Definition at line 371 of file llmath.h.

Referenced by LLHaze::calcFalloff(), LLColor3::exp(), llfastpow(), and LLFastLn::pow().

#define LL_MAN_INDEX   1

Definition at line 326 of file llmath.h.

#define llfinite ( val   )     std::isfinite(val)

#define llisnan ( val   )     std::isnan(val)

#define powf ( x,
 )     ((F32)pow((F64)(x),(F64)(y)))

Definition at line 78 of file llmath.h.

Referenced by LLVOSky::calcSkyColorInDir().

#define sinf (  )     ((F32)sin((F64)(x)))

#define sqrtf (  )     ((F32)sqrt((F64)(x)))

#define tanf (  )     ((F32)tan((F64)(x)))


Function Documentation

F32 clamp_rescale ( F32  x,
F32  x1,
F32  x2,
F32  y1,
F32  y2 
) [inline]

F32 cubic_step ( F32  x  )  [inline]

Definition at line 446 of file llmath.h.

References llclampf().

Here is the call graph for this function:

F32 cubic_step ( F32  x,
F32  x0,
F32  x1,
F32  s0,
F32  s1 
) [inline]

Definition at line 433 of file llmath.h.

Referenced by LLMotionController::updateMotionsByType().

Here is the caller graph for this function:

F32 fastMagnitude ( F32  a,
F32  b 
) [inline]

Definition at line 302 of file llmath.h.

References llmax(), and llmin().

Here is the call graph for this function:

U32 get_nearest_power_two ( U32  val,
U32  max_power_two 
) [inline]

Definition at line 477 of file llmath.h.

Referenced by LLFloaterSnapshot::Impl::checkImageSize(), and LLSnapshotLivePreview::generateThumbnailImage().

Here is the caller graph for this function:

BOOL is_approx_equal ( F64  x,
F64  y 
) [inline]

Definition at line 108 of file llmath.h.

References S32.

BOOL is_approx_equal ( F32  x,
F32  y 
) [inline]

Definition at line 102 of file llmath.h.

References S32.

Referenced by LLManipScale::renderSnapGuides().

Here is the caller graph for this function:

BOOL is_approx_equal_fraction ( F64  x,
F64  y,
U32  frac_bits 
) [inline]

Definition at line 135 of file llmath.h.

References FALSE, S32, and TRUE.

BOOL is_approx_equal_fraction ( F32  x,
F32  y,
U32  frac_bits 
) [inline]

Definition at line 114 of file llmath.h.

References FALSE, S32, and TRUE.

Referenced by tut::ensure_approximately_equals().

Here is the caller graph for this function:

BOOL is_approx_zero ( F32  f  )  [inline]

Definition at line 100 of file llmath.h.

References F_APPROXIMATELY_ZERO.

Referenced by LLManipRotate::dragUnconstrained(), LLTexLayerParamAlpha::getSkip(), LLTexLayer::render(), and LLManipScale::stretchFace().

Here is the caller graph for this function:

F32 lerp ( F32  a,
F32  b,
F32  u 
) [inline]

Definition at line 397 of file llmath.h.

Referenced by LLFloaterChat::addChatHistory(), LLKeyframeMotion::applyConstraint(), LLFolderViewFolder::arrange(), LLInventoryModel::backgroundFetch(), LLJointStateBlender::blendJointStates(), LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcCustomizeAvatarUIOffset(), LLAgent::calcFocusOffset(), LLWorldMapView::draw(), LLVoiceRemoteCtrl::draw(), LLFloaterTexturePicker::draw(), LLNetMap::draw(), LLFolderViewFolder::draw(), LLFloaterWorldMap::draw(), LLSnapshotLivePreview::draw(), LLFloaterColorPicker::draw(), LLFastTimerView::draw(), LLConsole::draw(), LLTabContainer::draw(), LLScrollbar::draw(), LLTearOffMenu::draw(), LLMenuHolderGL::draw(), LLButton::draw(), LLViewBorder::drawOnePixelLines(), LLMotion::fadeIn(), LLMotion::fadeOut(), LLTexLayer::findNetColor(), LLPath::generate(), LLPath::genNGon(), LLProfile::genNGon(), LLProfile::genNormals(), LLTexGlobalColor::getColor(), LLFocusMgr::getFocusColor(), LLFocusMgr::getFocusFlashWidth(), LLSelectMgr::getGrid(), gl_draw_scaled_image_with_border(), LLMenuGL::handleHover(), LLManipScale::highlightManipulators(), LLVOAvatar::idleUpdate(), LLKeyframeMotion::PositionCurve::interp(), LLKeyframeMotion::ScaleCurve::interp(), LLJointStateBlender::interpolate(), LLFlyAdjustMotion::onUpdate(), LLWalkAdjustMotion::onUpdate(), LLHeadRotMotion::onUpdate(), LLBVHLoader::optimize(), LLVolumeImplFlexible::remapSections(), LLManipRotate::render(), renderTexturePriority(), LLManipTranslate::renderTranslationHandles(), rescale(), LLAgent::resetView(), LLVolumeImplFlexible::setAttributesOfAllSections(), LLUI::setLineWidth(), setup_hud_matrices(), LLPipeline::setupAvatarLights(), LLFollowCam::update(), LLSpeakerMgr::update(), LLHUDText::updateAll(), LLAgent::updateCamera(), LLVOAvatar::updateCharacter(), LLViewerJointMesh::updateGeometryOriginal(), LLVOAvatar::updateHeadOffset(), LLLayoutStack::updateLayout(), LLHUDText::updateSize(), and LLDrawable::updateXform().

F32 lerp2d ( F32  x00,
F32  x01,
F32  x10,
F32  x11,
F32  u,
F32  v 
) [inline]

Definition at line 402 of file llmath.h.

References r.

F64 llabs ( const F64  a  )  [inline]

Definition at line 166 of file llmath.h.

F32 llabs ( const F32  a  )  [inline]

Definition at line 161 of file llmath.h.

S32 llabs ( const S32  a  )  [inline]

Definition at line 156 of file llmath.h.

References S32.

Referenced by LLKeyframeMotion::applyConstraint(), LLFolderViewFolder::arrange(), LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcFocusOffset(), LLManipRotate::dragConstrained(), LLManipScale::dragFace(), LLTracker::drawMarker(), LLWorldMapView::drawTrackingArrow(), LLView::findSnapEdge(), LLColumnHeader::findSnapEdge(), LLViewerRegion::getCompositionXY(), LLManip::getMousePointOnPlaneGlobal(), LLTextEditor::getSelectionRange(), LLLineEditor::getSelectionRange(), LLPanelFace::getState(), gl_segmented_rect_2d_fragment_tex(), gl_segmented_rect_2d_tex(), LLToolCamera::handleHover(), LLManipTranslate::handleHover(), LLMenuBarGL::handleHover(), LLMenuGL::handleHover(), LLManipRotate::handleMouseDownOnPart(), LLManipTranslate::highlightManipulators(), LLManipRotate::highlightManipulators(), LLToolDragAndDrop::isOverThreshold(), LLViewerWindow::mousePointOnPlaneGlobal(), LLViewerWindow::performPick(), LLFloaterPay::processPayPriceReply(), LLViewerImage::processTextureStats(), LLViewerWindow::rawSnapshot(), LLManipScale::renderAxisHandle(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLHUDText::renderText(), LLManip::renderTickValue(), LLManipTranslate::renderTranslationHandles(), LLFloaterView::reshapeFloater(), LLBufferArray::seek(), LLTextureFetch::sendRequestListToSimulators(), LLDebugVarMessageBox::show(), LLHUDText::updateScreenPos(), LLManipScale::updateSnapGuides(), and LLManipRotate::updateVisiblity().

Here is the caller graph for this function:

S32 llceil ( F32  f  )  [inline]

F32 llfastpow ( const F32  x,
const F32  y 
) [inline]

Definition at line 375 of file llmath.h.

References LL_FAST_EXP, and indra::base::lllog::log().

Here is the call graph for this function:

S32 llfloor ( F32  f  )  [inline]

Definition at line 197 of file llmath.h.

References S32.

Referenced by LLProfile::addHole(), LLToolView::addTool(), LLFloaterWorldMap::adjustZoomSliderBounds(), LLViewerTextureAnim::animateTextures(), LLAgent::calcFocusOffset(), LLFloaterWorldMap::centerOnTarget(), LLFontGL::charFromPixelOffset(), LLPartSysData::clampSourceParticleRate(), LLImageRaw::copyLineScaled(), LLAlertDialog::createDialog(), LLVOSurfacePatch::createDrawable(), LLVolumeFace::createSide(), LLWorldMapView::draw(), LLVoiceRemoteCtrl::draw(), LLGLTexMemBar::draw(), LLTextureBar::draw(), LLStatBar::draw(), LLPreviewTexture::draw(), LLNetMap::draw(), LLHoverView::draw(), LLFrameStatView::draw(), LLFolderViewItem::draw(), LLPanelVoiceDeviceSettings::draw(), LLFastTimerView::draw(), LLConsole::draw(), LLTextEditor::drawCursor(), LLTextBox::drawText(), LLWorldMapView::drawTracking(), LLWorldMapView::drawTrackingArrow(), LLSurfacePatch::eval(), F32_to_U16(), F32_to_U8(), LLVorbisDecodeState::finishDecode(), LLFontGL::firstDrawableChar(), LLPath::generate(), LLProfile::generate(), LLVLComposition::generateTexture(), LLWind::getCloudVelocity(), LLManip::getSubdivisionLevel(), LLViewerLayer::getValueScaled(), LLWind::getVelocity(), LLFontGL::getWidthF32(), gl_rect_2d_offset_local(), LLWorldMapView::handleMouseUp(), LLVOAvatar::idleUpdate(), LLFontGL::initDefaultFonts(), LLGradientPaletteList::initPalette(), LLGroupNotifyBox::LLGroupNotifyBox(), llround(), LLFastLn::ln(), LLFontGL::maxDrawableChars(), LLPanelLandAccess::onCommitAny(), LLFloaterSnapshot::Impl::onCommitCustomResolution(), LLFloaterAnimPreview::onCommitPriority(), LLFloaterSnapshot::Impl::onCommitQuality(), post_show_depth_buffer(), LLFloaterNameDesc::postBuild(), LLViewerWindow::rawSnapshot(), LLPanelActiveSpeakers::refreshSpeakers(), LLFontGL::render(), LLToolBrushLand::renderOverlay(), LLManipTranslate::renderSnapGuides(), LLHUDText::renderText(), LLConsole::reshape(), LLSurface::resolveHeightRegion(), LLPanelGroupVoting::impl::sendStartGroupProposal(), LLAlertDialog::setCheckBox(), LLGradientPaletteList::setHardwarePalette(), LLMotionController::setTimeStep(), LLComboBox::showList(), LLFolderView::startRenamingSelectedItem(), LLViewerJointMesh::updateGeometryOriginal(), LLViewerJointMesh::updateGeometryVectorized(), LLMotionController::updateMotion(), LLWorld::updateNetStats(), LLScreenClipRect::updateScissorRegion(), LLWorldMapView::viewPosToGlobal(), and windCallback().

F64 llround ( F64  val,
F64  nearest 
) [inline]

Definition at line 279 of file llmath.h.

F32 llround ( F32  val,
F32  nearest 
) [inline]

Definition at line 274 of file llmath.h.

S32 llround ( const F32  val  )  [inline]

Definition at line 226 of file llmath.h.

References llfloor().

Referenced by LLScrollListCtrl::addColumn(), agent_jump(), agent_push_forwardbackward(), agent_slide_leftright(), LLViewerWindow::analyzeHit(), LLViewerTextureAnim::animateTextures(), LLKeyframeMotion::applyConstraint(), LLFolderView::arrange(), LLFolderViewFolder::arrange(), LLMenuGL::arrange(), LLFloater::buildButtons(), LLScrollListCtrl::calcColumnWidths(), LLViewerWindow::calcDisplayScale(), LLVOVolume::calcLOD(), LLModalDialog::centerOnScreen(), LLWorldMapView::checkItemHit(), clamp_precision(), LLImageRaw::compositeRowScaled4onto3(), LLVOVolume::computeLODDetail(), LLWebBrowserCtrl::convertInputCoords(), LLImageRaw::copyLineScaled(), LLVolumeImplFlexible::doIdleUpdate(), LLWorldMapView::draw(), LLViewerWindow::draw(), LLStatGraph::draw(), LLProgressView::draw(), LLNetMap::draw(), LLFolderViewItem::draw(), LLSnapshotLivePreview::draw(), LLFastTimerView::draw(), LLScrollListText::draw(), LLLayoutStack::draw(), LLMenuItemBranchDownGL::draw(), LLLineEditor::draw(), LLFloater::draw(), LLButton::draw(), LLWorldMapView::drawAvatar(), LLTextEditor::drawClippedSegment(), LLTextEditor::drawCursor(), drawDot(), LLWorldMapView::drawIconName(), LLWorldMapView::drawImage(), LLWorldMapView::drawImageStack(), LLViewerWindow::drawMouselookInstructions(), LLViewerWindow::drawPickBuffer(), LLTextEditor::drawPreeditMarker(), LLTextEditor::drawSelectionBackground(), LLTextEditor::drawText(), LLWorldMapView::drawTracking(), LLNetMap::drawTracking(), LLMessageSystem::dumpReceiveCounts(), LLThrottleGroup::dynamicAdjust(), F32_to_U16_ROUND(), F32_to_U8_ROUND(), LLPanelDisplay::fractionFromDecimal(), LLVLComposition::generateHeights(), LLVLComposition::generateTexture(), LLSurface::generateWaterTexture(), LLProfile::genNGon(), LLFontGL::getAscenderHeight(), LLTextEditor::getCursorPosFromLocalCoord(), LLFontGL::getDescenderHeight(), LLFocusMgr::getFocusFlashWidth(), LLUIImage::getHeight(), LLScrollListText::getHeight(), LLFolderViewItem::getItemHeight(), LLFontGL::getLineHeight(), LLMenuItemGL::getNominalHeight(), LLTextEditor::getPreeditFontSize(), LLLineEditor::getPreeditFontSize(), LLTextEditor::getPreeditLocation(), LLViewerParcelMgr::getSelectedArea(), LLAgent::getSLURL(), LLPanelObject::getState(), LLUIImage::getWidth(), LLFontGL::getWidth(), gl_draw_scaled_image_with_border(), LLUI::glPointToScreen(), LLViewerWindow::handleDoubleClick(), LLScrollableContainerView::handleDragAndDrop(), LLMenuGL::handleHover(), LLLineEditor::handleHover(), LLWorldMapView::handleMouseDown(), LLViewerWindow::handleMouseDown(), LLViewerWindow::handleMouseMove(), LLViewerWindow::handleMouseUp(), LLViewerWindow::handlePerFrameHover(), LLToolSelectRect::handleRectangleSelection(), LLViewerWindow::handleRightMouseDown(), LLViewerWindow::handleRightMouseUp(), LLViewerWindow::hitObjectOrLandGlobalAsync(), LLTextEditor::LLTextEditor(), LLTextureCtrl::LLTextureCtrl(), LLViewerWindow::LLViewerWindow(), LLWebBrowserCtrl::LLWebBrowserCtrl(), LLFont::loadFace(), LLColor4U::multAll(), LLPanelPick::onClickSet(), LLPanelClassified::onClickSet(), LLBumpImageList::onSourceLoaded(), LLColor4::operator const LLColor4U(), LLVolumeMessage::packPathParams(), LLVolumeMessage::packProfileParams(), LLPrimitive::packTEMessage(), LLViewerWindow::performPick(), LLPanelClassified::processClassifiedInfoReply(), LLPanelEvent::processEventInfoReply(), LLPanelGroupLandMoney::impl::processGroupLand(), LLPanelPlace::processParcelInfoReply(), LLPanelPick::processPickInfoReply(), LLFloaterLandHoldings::processPlacesReply(), LLPanelLandOptions::refresh(), LLPanelLandObjects::refresh(), LLManipRotate::render(), LLFontGL::render(), render_ui_2d(), LLNetMap::renderPoint(), LLNetMap::renderScaledPointGlobal(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLManip::renderTickValue(), LLWebBrowserCtrl::reshape(), LLViewerWindow::reshape(), LLTextEditor::reshape(), LLCheckBoxCtrl::reshape(), LLDragHandleTop::reshapeTitleBox(), LLWebBrowserTexture::resize(), LLToolSelectLand::roundXY(), LLUI::screenPointToGL(), LLFolderView::scrollToShowItem(), LLViewerParcelMgr::selectParcelAt(), LLPanelObject::sendRotation(), LLUI::setCursorPositionScreen(), LLWorldMapView::setDirectionPos(), LLNetMap::setDirectionPos(), LLAudioEngine_FMOD::setInternalGain(), LLAudioEngine_FMOD::setInternetStreamGain(), LLSnapshotLivePreview::setThumbnailImageSize(), LLColor4U::setVecScaleClamp(), snap_to_sig_figs(), LLFloaterEnvSettings::timeToString(), to_region_handle(), LLFloaterWorldMap::trackLocation(), LLAudioChannelFMOD::updateBuffer(), LLFloater::updateButtons(), LLDrawable::updateDistance(), LLLayoutStack::updateLayout(), LLFloaterWorldMap::updateLocation(), LLFloaterBuyLandUI::updateParcelInfo(), LLCloudGroup::updatePuffCount(), LLSnapshotLivePreview::updateSnapshot(), LLWorld::updateWaterObjects(), LLNetMap::viewPosToGlobal(), and LLViewerParcelMgr::writeHighlightSegments().

Here is the call graph for this function:

F32 llsimple_angle ( F32  angle  )  [inline]

Definition at line 467 of file llmath.h.

References F_PI, and F_TWO_PI.

S32 lltrunc ( F64  f  )  [inline]

Definition at line 192 of file llmath.h.

References S32.

S32 lltrunc ( F32  f  )  [inline]

F32 quadratic_step ( F32  x,
F32  x0,
F32  x1,
F32  s0,
F32  s1 
) [inline]

Definition at line 453 of file llmath.h.

F32 ramp ( F32  x,
F32  a,
F32  b 
) [inline]

Definition at line 410 of file llmath.h.

Referenced by rescale().

Here is the caller graph for this function:

F32 rescale ( F32  x,
F32  x1,
F32  x2,
F32  y1,
F32  y2 
) [inline]

Definition at line 415 of file llmath.h.

References lerp(), and ramp().

Referenced by clamp_rescale(), LLSnapshotLivePreview::draw(), and LLAgent::setCameraZoomFraction().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 snap_to_sig_figs ( F32  foo,
S32  sig_figs 
) [inline]

Definition at line 381 of file llmath.h.

References llround(), and S32.

Referenced by LLVector3::snap().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

double d

const F32 DEG_TO_RAD = 0.017453292519943295769236907684886f

const F32 F_APPROXIMATELY_ZERO = 0.00001f

const F32 F_LN2 = 0.69314718056f

Definition at line 93 of file llmath.h.

const F32 F_PI = 3.1415926535897932384626433832795f

const F32 F_PI_BY_TWO = 1.5707963267948966192313216916398f

const F32 F_SQRT2 = 1.4142135623730950488016887242097f

const F32 F_SQRT3 = 1.73205080756888288657986402541f

const F32 F_TWO_PI = 6.283185307179586476925286766559f

const F32 FAST_MAG_ALPHA = 0.960433870103f

Definition at line 290 of file llmath.h.

const F32 FAST_MAG_BETA = 0.397824734759f

Definition at line 291 of file llmath.h.

const F32 FP_MAG_THRESHOLD = 0.0000001f

const F32 GRAVITY = -9.8f

Definition at line 81 of file llmath.h.

Referenced by LLViewerPartGroup::updateParticles().

S32 i

Definition at line 363 of file llmath.h.

Referenced by LLStringBase< T >::_makeASCII(), LLCamera::AABBInFrustum(), LLCamera::AABBInFrustumNoFarClip(), AABBSphereIntersect(), LLMatrix3::add(), add_exit_pops(), LLPreviewGesture::addAnimations(), LLBBox::addBBoxAgent(), LLViewerObject::addChild(), LLOctreeNode< T >::addChild(), LLStringBase< T >::addCRLF(), VertexCache::AddEntry(), LLFrameStats::addFrameData(), LLGeometryManager::addGeometryCount(), LLParticlePartition::addGeometryCount(), LLProfile::addHole(), LLLocalIDHashMap< DATA_TYPE, SIZE >::addIter(), LLJointStateBlender::addJointState(), LLAppViewer::addLoginURI(), LLViewerParcelOverlay::addPropertyLine(), LLPreviewGesture::addSounds(), LLViewerObject::addThisAndAllChildren(), LLViewerObject::addThisAndNonJointChildren(), LLViewerStats::addToMessage(), LLPanelGroupInvite::addUsers(), LLPanelGroupInvite::impl::addUsers(), LLHTTPNode::allNodePaths(), LLPolyMeshSharedData::allocateVertexData(), LLVOVolume::animateTextures(), LLAgent::anyControlGrabbed(), append_node_paths(), LLPanelAvatarClassified::apply(), LLKeyframeMotion::applyKeyframes(), LLUndoWearable::applyUndoRedo(), LLViewerCamera::areVertsVisible(), LLPieMenu::arrange(), LLScriptLibrary::assignExec(), LLGLSLShader::attachObjects(), LLTextEditor::autoIndent(), LLOctreeRoot< T >::balance(), base32_encode(), LLToolDragAndDrop::beginDrag(), LLToolDragAndDrop::beginMultiDrag(), LLViewerKeyboard::bindKey(), LLViewerKeyboard::bindNamedFunction(), LLJointStateBlender::blendJointStates(), LLPipeline::blurReflectionMap(), LLViewerObject::boostTexturePriority(), LLSpatialGroup::boundObjects(), build_copy_matrix(), build_decopy_matrix(), build_patch_dequantize_table(), build_patch_quantize_table(), LLHTTPRegistrar::buildAllServices(), LLFloater::buildButtons(), LLVOAvatar::buildCharacter(), LLFloaterClothing::buildClothingList(), LLPieMenuBranch::buildDrawLabel(), LLVOWLSky::buildFanBuffer(), LLFloaterWorldMap::buildLandmarkIDLists(), LLInventoryPanel::buildNewViews(), LLInventoryModel::buildParentChildMap(), LLVOWLSky::buildStripsBuffer(), bytestream2uuid(), calc_shame(), LLCamera::calcAgentFrustumPlanes(), LLAgent::calcCameraMinDistance(), LLSpatialPartition::calcDistance(), LLAgent::calcFocusOffset(), LLSurfacePatch::calcNormal(), LLVertexBuffer::calcStride(), LLPanelAvatarClassified::canClose(), LLVOAvatar::canGrabLocalTexture(), category_string_to_category(), category_ui_string_to_category(), LLInventoryTransactionObserver::changed(), LLInventoryAddedObserver::changed(), LLFontGL::charFromPixelOffset(), LLOctreePick::check(), LLUUIDHashMap< DATA_TYPE, SIZE >::check(), LLQueuedThread::check(), LLLocalIDHashMap< DATA_TYPE, SIZE >::check(), checkLevelMap(), LLMessageSystem::checkMessages(), LLGLState::checkTextureChannels(), clamp_precision(), LLViewerObjectList::cleanDeadObjects(), LLInventoryView::cleanup(), LLStdStringTable::cleanup(), LLAudioEngine::cleanupBuffer(), LLHUDManager::cleanupEffects(), LLVOSky::cleanupGL(), LLSpatialBridge::cleanupReferences(), LLVolumeLODGroup::cleanupRefs(), LLViewerPartSim::cleanupRegion(), LLVolume::cleanupTriangleData(), LLCullResult::clear(), LLAppearance::clear(), LLJointStateBlender::clear(), LLViewerObjectList::clearDebugText(), LLViewerObject::clearDrawableState(), LLViewerPartSim::clearParticlesByID(), code_patch(), code_patch_header(), LLInventoryModel::collectDescendentsIf(), LLToolDragAndDrop::commitGiveInventoryCategory(), compress_patch(), LLManipScale::conditionalHighlight(), LLSurface::connectNeighbor(), LLObjectSelection::contains(), LLStringBase< T >::containsNonprintable(), VertexCache::Copy(), CopyFolder(), LLImageRaw::copyLineScaled(), LLPrimitive::copyTEs(), LLImageRaw::copyUnscaled3onto4(), LLImageRaw::copyUnscaled4onto3(), LLSkyTex::create(), LLSurface::create(), LLCloudLayer::create(), LLVolumeFace::createBinormals(), LLVolumeFace::createCap(), LLAlertDialog::createDialog(), LLVOVolume::createDrawable(), LLVOTextBubble::createDrawable(), LLVOSky::createDrawable(), LLPipeline::createGLBuffers(), LLMenuGL::createJumpKeys(), LLPostProcess::createNoiseTexture(), LLSurface::createPatchData(), LLVolumeFace::createSide(), LLAgent::createStandardWearables(), LLSurface::createSTexture(), LLVolumeFace::createUnCutCubeCap(), LLPanelInventory::createViewsForCategory(), LLVolume::createVolumeFaces(), LLSurface::createWaterTexture(), LLToolDragAndDrop::dad3dUpdateInventoryCategory(), dct_patch(), LLMD5::decode(), decode_patch(), LLImageTGA::decodeAndProcess(), LLImageTGA::decodeColorMap(), LLTemplateMessageReader::decodeData(), LLImageJ2COJ::decodeImpl(), decodeLevel(), LLWind::decompress(), decompress_patch(), decompress_patchv(), LLSurface::decompressDCTPatch(), LLGestureList::deleteAll(), LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::deleteAllData(), LLPtrSkipList< DATA_TYPE, BINARY_DEPTH >::deleteAllData(), LLScriptEdCore::deleteBridges(), LLOctreeNode< T >::deleteChild(), LLInventoryModel::deleteFromServer(), LLVolumeLODGroup::derefLOD(), LLSelectMgr::deselectObjectAndFamily(), LLSDSerialize::deserialize(), LLMultiGesture::deserialize(), LLKeyframeMotion::deserialize(), LLGestureList::deserialize(), LLCloudLayer::destroy(), LLOctreeNode< T >::destroy(), LLViewerPartSim::destroyClass(), LLSpatialGroup::destroyGL(), LLStandardBumpmap::destroyGL(), LLCubeMap::destroyGL(), LLImageGL::destroyGLTexture(), LLTreeNode< T >::destroyListeners(), LLVOAvatar::detachObject(), LLViewerObjectList::dirtyAllObjectInventory(), LLSurface::dirtyAllPatches(), LLPipeline::dirtyPoolObjectTextures(), LLSurfacePatch::dirtyZ(), LLSurface::disconnectAllNeighbors(), LLCloudLayer::disconnectAllNeighbors(), LLSurfacePatch::disconnectNeighbor(), LLSurface::disconnectNeighbor(), display(), do_basic_glibc_backtrace(), LLTextEditor::doDelete(), LLVolumeImplFlexible::doFlexibleUpdate(), LLCategoryDropDescendentsObserver::done(), LLOutfitFetch::done(), LLRightClickInventoryFetchDescendentsObserver::done(), LLManipRotate::drag(), LLFolderBridge::dragCategoryIntoFolder(), LLTextureView::draw(), LLStatGraph::draw(), LLStatBar::draw(), LLNetMap::draw(), LLMemoryView::draw(), LLFrameStatView::draw(), LLFloaterJoystick::draw(), LLMakeOutfitDialog::draw(), LLFastTimerView::draw(), LLConsole::draw(), LLPieMenu::draw(), LLLineEditor::draw(), LLMultiFloater::draw(), LLFloater::draw(), LLPieMenu::drawBackground(), LLVOTree::drawBranchPipeline(), LLWorldMapView::drawImageStack(), LLTextEditor::drawPreeditMarker(), LLFloaterIMPanel::dropCategory(), LLFrameStats::dump(), LLVolumeLODGroup::dump(), LLMultiGesture::dump(), dump_prehash_files(), LLVOAvatar::dumpAvatarTEs(), LLLocalIDHashMap< DATA_TYPE, SIZE >::dumpBin(), LLDataPackerBinaryBuffer::dumpBufferToLog(), LLViewerRegion::dumpCache(), LLMemoryView::dumpData(), LLKeyframeMotion::JointMotionList::dumpDiagInfo(), LLLocalIDHashMap< DATA_TYPE, SIZE >::dumpIter(), LLVOAvatar::dumpLocalTextures(), LLVFS::dumpLockCounts(), LLMessageSystem::dumpPacketToLog(), LLMessageSystem::dumpReceiveCounts(), LLThrottleGroup::dynamicAdjust(), LLPipeline::enableLights(), LLMD5::encode(), LLImageTGA::encode(), LLImageBMP::encode(), encode_vorbis_file(), LLImageJ2COJ::encodeImpl(), tut::ensure_equals(), tut::HTTPNodeTestData::ensureInArray(), LLWeb::escapeURL(), LLXMLNode::escapeXML(), LLView::escapeXML(), LLParcel::extendAABB(), LLFolderView::extendSelection(), face_index_from_id(), LLImageRaw::fastFractionalMult(), LLScriptFilePosition::fdotabs(), LLImageRaw::fill(), tut::fillmap(), LLDynamicQueuePtr< Type >::find(), find_file(), LLInventoryModel::findCatUUID(), LLCloudLayer::findCloudGroup(), LLFloaterTexturePicker::findItemID(), LLFloaterLandmark::findItemID(), LLFloaterView::findNeighboringPosition(), LLKeyUseTracker< TKey, TData >::findNode(), LLViewerObjectList::findOrphans(), LLViewerObjectList::findReferences(), LLVorbisDecodeState::finishDecode(), LLInventoryCallbackManager::fire(), LLUUIDHashMapIter< DATA_TYPE, SIZE >::first(), LLLocalIDHashMapIter< DATA_TYPE, SIZE >::first(), LLFontGL::firstDrawableChar(), LLUndoBuffer::flushActions(), LLAPIService::followRemainder(), forAllDrawables(), LLVOAvatar::forceBakeAllTextures(), LLSDXMLFormatter::format_impl(), LLPartSysCompressedPacket::fromLLPartInitData(), LLTexLayerSet::gatherAlphaMasks(), LLVOVolume::genBBoxes(), LLDynamicPath::generate(), LLPath::generate(), LLProfile::generate(), LLVLComposition::generateComposition(), LLVLComposition::generateHeights(), LLPipeline::generateReflectionMap(), LLVLComposition::generateTexture(), GenerateUniqueHFSUniStr(), LLSurface::generateWaterTexture(), LLPolyMeshSharedData::genIndices(), LLProfile::genNGon(), LLFace::genVolumeBBoxes(), LLUUIDHashMap< DATA_TYPE, SIZE >::get(), LLSDUnnamedNamespace::ImplMap::get(), LLLocalIDHashMap< DATA_TYPE, SIZE >::get(), LLGestureList::get(), get_random_bytes(), LLInventoryView::getActiveInventory(), LLVOAvatar::getAnimLabels(), LLVOAvatar::getAnimNames(), LLWind::getAverage(), LLVOVolume::getBinRadius(), LLXMLNode::getBoolValue(), LLSphere::getBoundingSphere(), LLXMLNode::getByteValue(), LLWind::getCloudVelocity(), LLImageBase::getCodecFromExtension(), LLVOAvatar::getCollisionVolumeID(), LLControlGroup::getColor(), LLScrollListItem::getContentsCSV(), LLTextEditor::getCurrentLineAndColumn(), LLFloaterChatterBox::getCurrentVoiceFloater(), LLCloudLayer::getDensityRegion(), LLVolumeLODGroup::getDetailFromTan(), LLXMLNode::getDoubleValue(), LLViewerTextEditor::getEmbeddedText(), LLXMLNode::getFloatValue(), LLAudioEngine::getFreeBuffer(), LLAudioEngine::getFreeChannel(), LLVOTextBubble::getGeometry(), LLTerrainPartition::getGeometry(), LLParticlePartition::getGeometry(), LLVOGrass::getGeometry(), LLFace::getGeometryVolume(), LLGLManager::getGLInfo(), LLAgent::getGroupContribution(), LLAgent::getGroupData(), LLVOAvatar::getHUDBBox(), LLMakeOutfitDialog::getIncludedItems(), LLXMLNode::getIntValue(), LLVOAvatar::getLocalTextureByteCount(), LLXMLNode::getLongValue(), LLStat::getMax(), LLStat::getMaxPerSec(), LLStat::getMean(), LLStat::getMeanDuration(), LLStat::getMeanPerSec(), LLStat::getMin(), LLStat::getMinDuration(), LLStat::getMinPerSec(), LLResMgr::getMonetaryString(), LLOctreeNode< T >::getNodeAt(), LLLinkedList< DATA_TYPE >::getNthData(), LLDoubleLinkedList< DATA_TYPE >::getNthData(), LLViewerObject::getNumIndices(), LLViewerObject::getNumVertices(), LLVOAvatar::getOffObject(), LLViewerParcelOverlay::getOwnedRatio(), LLHTTPAssetStorage::getPendingDetails(), LLAgent::getPowerInGroup(), LLResMgr::getRes(), LLScriptDataCollection::getSavedSize(), LLPostProcess::getShaderUniforms(), LLVOAvatar::getSpatialExtents(), LLMessageStringTable::getString(), LLCategory::getSubCategory(), LLImageRaw::getSubImage(), LLStat::getSum(), LLStat::getSumDuration(), LLFastTimerView::getTime(), LLVolume::getTriangleIndices(), LLXMLNode::getUnsignedValue(), LLXMLNode::getUUIDValue(), LLWind::getVelocity(), LLAgent::getWearableFromWearableItem(), LLFontGL::getWidthF32(), LLToolDragAndDrop::giveInventoryCategory(), gl_rect_2d_checkerboard(), glh_copy_matrix(), gSetInitDataDefaults(), LLTeleportHandler::handle(), handle_selected_texture_info(), LLToolDragAndDrop::handleCopyProtectedCategory(), LLSpatialGroup::handleDestruction(), LLBeginIMSession::handleEvent(), LLFastTimerView::handleHover(), LLScrollableContainerView::handleKeyHere(), LLToolBrushLand::handleMouseDown(), LLToolSelect::handleObjectSelection(), LLToolSelectRect::handleRectangleSelection(), tut::AlphaNode::handles(), LLScrollableContainerView::handleScrollWheel(), LLTextEditor::handleSpecialKey(), LLScrollableContainerView::handleToolTip(), LLSDUnnamedNamespace::ImplMap::has(), LLAgent::hasPowerInGroup(), headerCallback(), LLMD5::hex_digest(), LLManipTranslate::highlightIntersection(), LLManipTranslate::highlightManipulators(), LLManipScale::highlightManipulators(), LLSelectMgr::highlightObjectAndFamily(), htonmemcpy(), idct_patch(), LLAudioEngine::idle(), idle_startup(), LLVOTextBubble::idleUpdate(), LLVOAvatar::idleUpdate(), LLNotecard::importEmbeddedItemsStream(), LLWearable::importFile(), LLCacheName::importFile(), LLParcel::importStream(), VertexCache::InCache(), LLInventoryView::incrementalFind(), LLTextEditor::indentLine(), init(), LLWind::init(), LLVOSky::init(), LLSkyTex::init(), LLTable< T >::init(), LLScriptExecute::init(), LLVFSFileBlock::init(), LLPerlinNoise::init(), LLCategory::init(), LLSkipList< DATA_TYPE, BINARY_DEPTH >::init(), init_group_list(), init_landmark_menu(), init_supported_expressions(), LLTextureCache::initCache(), LLVOTree::initClass(), LLVOGrass::initClass(), LLViewerImage::initClass(), LLCurl::initClass(), LLSkyTex::initEmpty(), LLFloater::initFloater(), LLCubeMap::initGL(), LLCubeMap::initGLData(), LLScriptLSOParse::initOpCodePrinting(), LLGradientPaletteList::initPalette(), LLCubeMap::initRawData(), LLVOWLSky::initStars(), LLPanelDisplay::initWindowSizeControls(), LLTreeNode< T >::insert(), LLOctreeRoot< T >::insert(), LLOctreeNode< T >::insert(), inventory_and_asset_types_match(), LLPanelInventory::inventoryChanged(), LLFloaterIMPanel::inviteToSession(), LLParcel::isAgentBlockedFromParcel(), LLVOAvatar::isAnyAnimationSignaled(), LLViewerObject::isChild(), LLFloaterCustomize::isDirty(), LLAggregatePermissions::isEmpty(), LLVolume::isFaceMaskValid(), LLKeywordToken::isHead(), LLAgent::isInGroup(), LLFolderBridge::isItemRemovable(), LLMessageSystem::isMatchingDigestForWindow(), LLMessageSystem::isMatchingDigestForWindowAndUUIDs(), LLScrollListCtrl::isRepeatedChars(), LLViewerObject::isSeat(), LLViewerObjectList::killAllObjects(), LLViewerObjectList::killObjects(), lang_country_variant_from_envstring(), LLVOAvatar::lazyAttach(), LLPanelGroups::leave(), LLVolume::lineSegmentIntersect(), LLVoiceVisualizer::lipStringToF32s(), LLAgent::LLAgent(), LLAggregatePermissions::LLAggregatePermissions(), LLApp::LLApp(), LLAttentionSet::LLAttentionSet(), LLBakedUploadData::LLBakedUploadData(), LLCloudLayer::LLCloudLayer(), LLEnum::LLEnum(), LLFastLn::LLFastLn(), LLFastTimerView::LLFastTimerView(), LLFloater::LLFloater(), LLFloaterPay::LLFloaterPay(), llgl_dump(), LLGLClampToFarClip::LLGLClampToFarClip(), LLHUDEffectBeam::LLHUDEffectBeam(), LLJointStateBlender::LLJointStateBlender(), LLKeyboard::LLKeyboard(), LLLineSegmentAABB(), LLLocalIDHashMap< DATA_TYPE, SIZE >::LLLocalIDHashMap(), LLMakeOutfitDialog::LLMakeOutfitDialog(), LLManipScale::LLManipScale(), LLMessageStringTable::LLMessageStringTable(), LLMotion::LLMotion(), LLNameValue::LLNameValue(), LLNotifyBox::LLNotifyBox(), LLPartSysCompressedPacket::LLPartSysCompressedPacket(), LLPtrSkipList< DATA_TYPE, BINARY_DEPTH >::LLPtrSkipList(), LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::LLPtrSkipMap(), LLPtrSkipMapNode< INDEX_T, DATA_T, BINARY_DEPTH >::LLPtrSkipMapNode(), LLPtrSkipList< DATA_TYPE, BINARY_DEPTH >::LLPtrSkipNode::LLPtrSkipNode(), LLRayAABB(), LLResMgr::LLResMgr(), LLScriptDataCollection::LLScriptDataCollection(), LLScriptEventData::LLScriptEventData(), LLSelectNode::LLSelectNode(), LLSkipMap< INDEX_TYPE, DATA_TYPE, BINARY_DEPTH >::LLSkipMap(), LLSkipMap< INDEX_TYPE, DATA_TYPE, BINARY_DEPTH >::LLSkipMapNode::LLSkipMapNode(), LLSkipList< DATA_TYPE, BINARY_DEPTH >::LLSkipNode::LLSkipNode(), LLSphereAABB(), LLStat::LLStat(), LLStdStringTable::LLStdStringTable(), LLStringTable::LLStringTable(), LLSurface::LLSurface(), LLSurfacePatch::LLSurfacePatch(), LLThrottleGroup::LLThrottleGroup(), LLTransferManager::LLTransferManager(), LLUndoBuffer::LLUndoBuffer(), LLVFS::LLVFS(), LLViewerJoystick::LLViewerJoystick(), LLViewerKeyboard::LLViewerKeyboard(), LLViewerLayer::LLViewerLayer(), LLViewerParcelMgr::LLViewerParcelMgr(), LLViewerParcelOverlay::LLViewerParcelOverlay(), LLViewerStats::LLViewerStats(), LLViewerThrottleGroup::LLViewerThrottleGroup(), LLVLComposition::LLVLComposition(), LLVOAvatar::LLVOAvatar(), LLVoiceVisualizer::LLVoiceVisualizer(), LLVolumeLODGroup::LLVolumeLODGroup(), LLVOSky::LLVOSky(), LLVOTextBubble::LLVOTextBubble(), LLWorld::LLWorld(), LLAgentPilot::load(), LLShaderMgr::loadBasicShaders(), LLBVHLoader::loadBVHFile(), LLViewerRegion::loadCache(), LLWLDayCycle::loadDayCycle(), LLFeatureManager::loadGPUClass(), LLTextEditor::loadKeywords(), LLPolyMeshSharedData::loadMesh(), LLShaderMgr::loadShaderFile(), LLInventoryModel::loadSkeleton(), LLPreviewGesture::loadUIFromGesture(), LLSaleInfo::lookup(), LLInventoryType::lookup(), LLAssetType::lookup(), LLAssetType::lookupHumanReadable(), LLCategory::lookupName(), lsa_bubble_sort(), lsa_decrease_ref_count(), lsa_get_data(), lsa_get_list_ptr(), lscript_pusharge(), lso_print_tabs(), LLDrawable::makeActive(), LLSDUnnamedNamespace::ImplArray::makeArray(), LLStdStringTable::makehash(), LLSDUnnamedNamespace::ImplMap::makeMap(), LLAgent::makeNewOutfit(), LLViewerGestureList::matchPrefix(), LLFontGL::maxDrawableChars(), mbcsstring_makeASCII(), mean_name_callback(), LLDrawable::mergeFaces(), LLInventoryModel::messageUpdateCore(), LLWLParamSet::mix(), LLToolBrushLand::modifyLandInSelectionGlobal(), LLViewerWindow::mousePointOnLandGlobal(), LLViewerJoystick::moveAvatar(), LLViewerJoystick::moveFlycam(), LLViewerJoystick::moveObjects(), LLFloater::moveResizeHandlesToFront(), LLDrawable::moveUpdatePipeline(), LLLine::nearestApproach(), LLManipScale::nearestAxis(), LLUUIDHashMapIter< DATA_TYPE, SIZE >::next(), LLLocalIDHashMapIter< DATA_TYPE, SIZE >::next(), noise2(), LLPerlinNoise::noise2(), noise3(), LLPerlinNoise::noise3(), LLIMMgr::noteMutedUsers(), LLIMMgr::noteOfflineUsers(), notify_cautioned_script_question(), LLViewerParcelMgr::notifyObservers(), LLCacheName::Impl::notifyObservers(), LLTreeNode< T >::notifyRemoval(), LLHandMotion::onActivate(), LLFloaterCustomize::onBtnMakeOutfit(), LLPanelAvatar::onClickCSR(), LLFloaterAvatarTextures::onClickDump(), LLVOAvatar::onCustomizeEnd(), LLVOAvatar::onCustomizeStart(), LLKeyframeMotion::onInitialize(), LLAgent::onInitialWearableAssetArrived(), LLBumpImageList::onSourceLoaded(), operator!=(), LLDispatchSetEstateAccess::operator()(), operator*(), operator*=(), operator+=(), operator-=(), LLUUID::operator<(), operator<<(), operator==(), LLUUID::operator>(), operator>>(), LLUUID::operator^=(), output_statistics(), ownership_string_to_status(), LLDataPackerAsciiFile::packBinaryData(), LLDataPackerAsciiBuffer::packBinaryData(), LLDataPackerAsciiFile::packBinaryDataFixed(), LLDataPackerAsciiBuffer::packBinaryDataFixed(), LLPrimitive::packTEField(), LLThrottleGroup::packThrottle(), parse_gl_version(), LLColor4U::parseColor4U(), LLCommandLineParser::parseCommandLineString(), LLQueryResponder::parseSection(), LLManipScale::partToMaxScale(), LLManipScale::partToMinScale(), LLTextEditor::paste(), LLFolderBridge::pasteFromClipboard(), LLFloaterPay::payDirectly(), LLToolDragAndDrop::pickCallback(), LLSimpleHash< U32, REQUEST_HASH_SIZE >::pop_element(), CoarseLocationUpdate::post(), post_show_depth_buffer(), LLPanelGroupRoles::postBuild(), LLPanelGroupLandMoney::postBuild(), LLPanelGroup::postBuild(), LLPanelDisplay::postBuild(), LLPanelRegionTextureInfo::postBuild(), LLFloaterLandHoldings::postBuild(), LLFloaterJoystick::postBuild(), LLPipeline::postSort(), LLLineEditor::postvalidateFloat(), prescan_patch(), LLLineEditor::prevalidateFloat(), LLLineEditor::prevalidateInt(), LLLineEditor::prevalidateNonNegativeS32(), LLLineEditor::prevalidatePositiveS32(), print_exit_pops(), LLFace::printDebugInfo(), LLScriptLSOParse::printGlobalFunctions(), LLMemType::printMem(), LLCommandLineParser::printOptions(), LLScriptLSOParse::printRegisters(), LLScriptLSOParse::printStates(), LLAres::process(), process_avatar_animation(), LLFilterXMLRPCRequest2LLSD::process_impl(), process_kill_object(), process_logout_reply(), process_mean_collision_alert_message(), process_name_value(), process_packet_ack(), process_remove_name_value(), process_script_dialog(), process_script_question(), process_sim_stats(), LLAgent::processAgentGroupDataUpdate(), LLAgent::processAgentInitialWearablesUpdate(), LLVOAvatar::processAvatarAppearance(), LLPanelAvatar::processAvatarGroupsReply(), LLFloaterAvatarPicker::processAvatarPickerReply(), LLInventoryModel::processBulkUpdateInventory(), LLAvatarTracker::processChange(), LLPanelDirBrowser::processDirClassifiedReply(), LLPanelDirBrowser::processDirEventsReply(), LLPanelDirBrowser::processDirGroupsReply(), LLPanelDirBrowser::processDirLandReply(), LLPanelDirBrowser::processDirPeopleReply(), LLPanelDirBrowser::processDirPlacesReply(), LLRegionEconomy::processEconomyData(), LLGlobalEconomy::processEconomyData(), LLSelectMgr::processForceObjectSelect(), LLOctreeSelect::processGroup(), LLPanelGroupVoting::impl::processGroupActiveProposalItemReply(), LLPanelGroupLandMoney::impl::processGroupLand(), LLGroupMgr::processGroupMembersReply(), LLGroupMgr::processGroupRoleDataReply(), LLGroupMgr::processGroupRoleMembersReply(), LLGroupMgr::processGroupTitlesReply(), LLPanelGroupVoting::impl::processGroupVoteHistoryItemReply(), LLInventoryModel::processInventoryDescendents(), LLInventoryModel::processMoveInventoryItem(), LLPanelGroupNotices::processNotices(), LLAvatarTracker::processNotify(), LLSelectMgr::processObjectProperties(), LLViewerObjectList::processObjectUpdate(), LLPanelLandObjects::processParcelObjectOwnersReply(), LLFloaterPay::processPayPriceReply(), LLFloaterLandHoldings::processPlacesReply(), LLVOAvatar::processRebakeAvatarTextures(), LLInventoryModel::processRemoveInventoryFolder(), LLInventoryModel::processRemoveInventoryItem(), LLGroupMoneySalesTabEventHandler::processReply(), LLGroupMoneyDetailsTabEventHandler::processReply(), LLAgent::processScriptControlChange(), LLTextureFetchWorker::processSimulatorPackets(), LLInventoryModel::processUpdateInventoryFolder(), LLViewerObject::processUpdateMessage(), LLCacheName::Impl::processUUIDReply(), LLCacheName::Impl::processUUIDRequest(), LLHUDManager::processViewerEffect(), LLTextureCache::purgeAllTextures(), LLInventoryModel::purgeDescendentsOf(), LLRenderPass::pushBatches(), pushBufferVerts(), LLOctreeNode< T >::pushCenter(), pushVerts(), pushVertsColorCoded(), LLViewerPartSim::put(), LLMatrix4::quaternion(), LLMatrix3::quaternion(), LLAres::UriRewriteResponder::queryResult(), LLQueryResponder::queryResult(), randGauss(), randomize_sphere(), LLViewerWindow::rawSnapshot(), LLPartSysCompressedPacket::readAlpha_range(), LLPartSysCompressedPacket::readAlphaScaleDiffEqn_range(), LLTexLayerSetBuffer::readBackAndUpload(), LLPartSysCompressedPacket::readEnvironment(), LLTextureCache::readHeaderCache(), LLPngWrapper::readPng(), LLPartSysCompressedPacket::readScale_range(), LLPartSysCompressedPacket::readSpawn(), LLPartSysCompressedPacket::readVelocityOffset(), LLPartSysCompressedPacket::readWindDiffusionFactor(), LLDynamicQueuePtr< Type >::realloc(), LLSpatialGroup::rebound(), LLVolumeGeometryManager::rebuildGeom(), LLAgent::recoverMissingWearableDone(), LLScriptScript::recurse(), LLScriptListInitializer::recurse(), LLSDUnnamedNamespace::ImplMap::ref(), refr_ind_calc(), LLPanelDisplay::refreshEnabledState(), LLFloaterProperties::refreshFromItem(), LLPanelRegionTextureInfo::refreshFromRegion(), LLFloaterBuyLandUI::refreshUI(), LLVOVolume::regenFaces(), LLPipeline::releaseGLBuffers(), tut::HTTPNodeTestData::remainderPath(), LLSelectMgr::remove(), LLUUIDHashMap< DATA_TYPE, SIZE >::remove(), LLLocalIDHashMap< DATA_TYPE, SIZE >::remove(), remove_inventory_category_from_avatar_step2(), LLUUIDHashMap< DATA_TYPE, SIZE >::removeAll(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeAll(), LLSkipMap< INDEX_TYPE, DATA_TYPE, BINARY_DEPTH >::removeAllData(), LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::removeAllData(), LLSkipList< DATA_TYPE, BINARY_DEPTH >::removeAllNodes(), LLPtrSkipList< DATA_TYPE, BINARY_DEPTH >::removeAllNodes(), LLTaskInvFVBridge::removeBatch(), LLInvFVBridge::removeBatch(), LLInvFVBridge::removeBatchNoCheck(), LLOctreeNode< T >::removeByAddress(), LLTextEditor::removeCharOrTab(), LLViewerObject::removeChild(), LLOctreeNode< T >::removeChild(), LLStringBase< T >::removeCRLF(), LLViewerObjectList::removeDrawable(), LLFolderBridge::removeItem(), LLFloaterCompileQueue::removeItemByAssetID(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeIter(), LLVOAvatar::removeMissingBakedTextures(), LLKeyUseTracker< TKey, TData >::removeNode(), LLSpatialGroup::removeObject(), LLViewerPartGroup::removeParticlesByID(), LLFolderView::removeSelectedItems(), LLEmbeddedItems::removeUnusedChars(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeWithShift(), LLVFS::renameFile(), LLVoiceVisualizer::render(), LLManipRotate::render(), LLHUDEffectBeam::render(), LLImagePreviewSculpted::render(), LLDrawPoolTerrain::render(), LLDrawPoolSky::render(), LLFontGL::render(), render_disconnected_background(), LLDrawPoolAlpha::renderAlpha(), LLDrawPoolAlpha::renderAlphaHighlight(), LLDrawPoolAvatar::renderAvatars(), LLTracker::renderBeacon(), LLPipeline::renderBloom(), renderBoundingBox(), LLDrawPoolBump::renderBump(), LLVOAvatar::renderCollisionVolumes(), LLManipScale::renderCorners(), LLPipeline::renderDebug(), LLManipScale::renderFaces(), LLPipeline::renderForSelect(), LLPipeline::renderGeom(), LLPipeline::renderGroups(), LLPipeline::renderHighlights(), renderLights(), LLViewerObjectList::renderObjectBeacons(), LLViewerObjectList::renderObjectsForMap(), LLViewerObjectList::renderObjectsForSelect(), renderOctree(), LLSelectNode::renderOneSilhouette(), LLToolBrushLand::renderOverlay(), renderPoints(), LLViewerParcelOverlay::renderPropertyLines(), LLFace::renderSelectedUV(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLManipRotate::renderSnapGuides(), LLManipTranslate::renderTranslationHandles(), LLDrawPoolTree::renderTree(), LLWind::renderVectors(), LLError::replaceChar(), LLStringBase< T >::replaceNonstandardASCII(), LLStringBase< T >::replaceTabsWithSpaces(), LLViewerRegion::requestCacheMisses(), LLStat::reset(), LLStatAccum::impl::reset(), LLFastTimer::reset(), LLDynamicQueuePtr< Type >::reset(), LLViewerJoystick::resetDeltas(), LLThrottleGroup::resetDynamicAdjust(), LLPanelAvatar::resetGroupList(), LLKeyboard::resetKeys(), LLViewerParcelMgr::resetSegments(), LLPipeline::resetVertexBuffers(), LLSurface::resolveNormalGlobal(), LLSurface::resolvePatchRegion(), LLPipeline::restoreGL(), LLVOSky::restoreGL(), LLSkyTex::restoreGL(), LLManipTranslate::restoreGL(), LLInventoryClipboard::retrieve(), LLAgent::revertAllWearables(), Responder::rewriteResult(), LLAres::UriRewriteResponder::rewriteResult(), run_calllib(), run_calllib_two_byte(), run_stacktol(), run_stacktos(), LLCrashLogger::runCrashLogPost(), LLAgentPilot::save(), LLAgent::saveAllWearables(), LLSelectNode::saveColors(), LLViewerWindow::saveImageNumbered(), LLFloaterCompileQueue::saveItemByAssetID(), LLSelectNode::saveTextureScaleRatios(), LLInventoryModel::saveToFile(), LLViewerKeyboard::scanKey(), LLVolume::sculpt(), LLVolume::sculptGenerateMapVertices(), LLVolume::sculptGeneratePlaceholder(), LLSelectNode::selectAllTEs(), LLTextEditor::selectionContainsLineBreaks(), LLTabContainer::selectTab(), LLMail::send(), send_start_session_messages(), LLCircuit::sendAcks(), LLAgent::sendAgentWearablesUpdate(), LLAgent::sendAnimationRequests(), LLHUDManager::sendEffects(), LLPanelRegionTextureInfo::sendUpdate(), LLMultiGesture::serialize(), LLKeyframeMotion::serialize(), LLGestureList::serialize(), LLScriptEventData::set(), LLUUID::set(), LLUUIDHashMap< DATA_TYPE, SIZE >::set(), LLLocalIDHashMap< DATA_TYPE, SIZE >::set(), LLPrimitive::setAllTETextures(), LLVolumeImplFlexible::setAttributesOfAllSections(), LLLocalIDHashMapIter< DATA_TYPE, SIZE >::setBin(), LLFloater::setCanResize(), LLViewerObject::setCanSelect(), setControlValueCB(), LLLineEditor::setCursorAtLocalPos(), LLAudioEngine::setDefaults(), LLViewerObject::setDrawableState(), LLViewerTextEditor::setEmbeddedText(), LLAgent::setGroupContribution(), LLPolyMorphTarget::setInfo(), LLTracker::setLandmarkVisited(), setLevels(), LLKeyframeMotion::setLoopIn(), LLKeyframeMotion::setLoopOut(), LLFloater::setMinimized(), LLThrottleGroup::setNominalBPS(), LLDrawable::setNumFaces(), LLDrawable::setNumFacesFast(), LLViewerObject::setNumTEs(), LLPrimitive::setNumTEs(), LLSurface::setOriginGlobal(), LLViewerCamera::setPerspective(), LLKeyframeMotion::setPriority(), LLViewerObject::setRegion(), LLFloater::setResizeLimits(), LLShaderMgr::setShaders(), LLHUDEffectBeam::setSourceObject(), LLVertexBuffer::setStride(), LLImageRaw::setSubImage(), LLFont::setSubImageLuminanceAlpha(), LLPrimitive::setTEArrays(), LLFrameStatView::setup(), LLPipeline::setupAvatarLights(), LLVertexBuffer::setupClientArrays(), LLStatusBar::setupDate(), LLAgent::setUserGroupFlags(), LLSpatialBridge::setVisible(), LLPrimitive::setVolume(), LLAgent::setWearableName(), LLAgent::setWearableOutfit(), LLViewerPartSim::shift(), LLViewerPartGroup::shift(), LLSpatialGroup::shift(), LLPipeline::shiftObjects(), LLViewerObjectList::shiftObjects(), LLDrawable::shiftPos(), LLWorld::shiftRegions(), LLAudioEngine::shutdown(), LLGenePool::spawn(), LLCamera::sphereInFrustum(), LLAres::SrvResponder::srvResult(), start_deprecated_conference_chat(), LLXmlTreeParser::startElement(), LLAudioEngine::startNextTransfer(), LLVoiceClient::stateMachine(), LLPipeline::stateSort(), LLInventoryClipboard::store(), LLStringBase< T >::stripNonprintable(), LLStatAccum::impl::sum(), LLXmlTreeParser::tabs(), LLViewerWindow::thumbnailSnapshot(), LLPartSysCompressedPacket::toLLPartInitData(), LLOctreeRenderNonOccluded::traverse(), LLOctreeStateCheck::traverse(), LLOctreeTraveler< T >::traverse(), LLGestureList::trigger(), LLGestureList::triggerAndReviseString(), LLStringBase< T >::trimHead(), LLStringBase< T >::trimTail(), LLTextEditor::tryToRevertToPristineState(), LLWearable::typeNameToType(), LLControlGroup::typeStringToEnum(), LLGLSLShader::unbind(), LLGLSLShader::unload(), LLParcel::unpackAccessEntries(), LLDataPackerAsciiFile::unpackBinaryData(), LLDataPackerAsciiBuffer::unpackBinaryData(), LLDataPackerAsciiFile::unpackBinaryDataFixed(), LLDataPackerAsciiBuffer::unpackBinaryDataFixed(), LLVLManager::unpackData(), LLDispatcher::unpackMessage(), LLPrimitive::unpackTEField(), LLFloaterTelehub::unpackTelehubInfo(), LLPrimitive::unpackTEMessage(), LLThrottleGroup::unpackThrottle(), LLWLParamSet::update(), LLWaterParamManager::update(), LLViewerPartSourceScript::update(), LLGestureManager::update(), LLCRC::update(), update_min_max(), LLHUDText::updateAll(), LLViewerObjectList::updateApparentAngles(), LLFloaterCompileQueue::updateAssetID(), LLFloater::updateButtons(), LLPanelGroupGeneral::updateChanged(), LLAudioEngine::updateChannels(), LLViewerRegion::updateCoarseLocations(), LLScrollListCtrl::updateColumns(), LLSurfacePatch::updateCompositionStats(), LLPipeline::updateCull(), LLSpatialBridge::updateDistance(), LLDrawable::updateDistance(), LLVOSurfacePatch::updateEastGeometry(), LLHUDManager::updateEffects(), LLViewerJointMesh::updateFaceData(), LLVOVolume::updateFaceFlags(), LLVOSky::updateFog(), LLViewerCamera::updateFrustumPlanes(), LLVOWLSky::updateGeometry(), LLVOTree::updateGeometry(), LLVOTextBubble::updateGeometry(), LLVOSky::updateGeometry(), LLVOPartGroup::updateGeometry(), LLViewerJointMesh::updateGeometry(), LLFloaterCustomize::updateInventoryUI(), LLScrollListCtrl::updateLineHeight(), LLScrollListCtrl::updateLineHeightInsert(), LLVOSurfacePatch::updateMainGeometry(), LLPanelGroupMembersSubTab::updateMembers(), LLPanelGroupGeneral::updateMembers(), LLVOAvatar::updateMeshTextures(), LLOctreeNode< T >::updateMinMax(), LLMotionController::updateMotionsByType(), LLPipeline::updateMove(), LLSurfacePatch::updateNormals(), LLSurfacePatch::updateNorthEdge(), LLVOSurfacePatch::updateNorthGeometry(), LLViewerParcelOverlay::updateOverlayTexture(), LLViewerPartGroup::updateParticles(), LLSurface::updatePatchVisibilities(), LLFloaterTools::updatePopup(), LLTextEditor::updatePreedit(), LLLineEditor::updatePreedit(), LLViewerParcelOverlay::updatePropertyLines(), LLCloudLayer::updatePuffCount(), LLCloudGroup::updatePuffCount(), LLCloudLayer::updatePuffOwnership(), LLCloudGroup::updatePuffOwnership(), LLCloudLayer::updatePuffs(), LLCloudGroup::updatePuffs(), LLViewerPartSim::updateSimulation(), LLVOSky::updateSky(), LLSpatialBridge::updateSpatialExtents(), LLViewerJoystick::updateStatus(), LLPanelGroup::updateTabVisibility(), LLVOVolume::updateTextures(), LLVOTextBubble::updateTextures(), LLVOAvatar::updateTextures(), LLSurfacePatch::updateVerticalStats(), LLViewerJointMesh::uploadJointMatrices(), utf16str_to_wstring(), utf16str_wstring_length(), utf8str_removeCRLF(), utf8str_to_wstring(), uuid2bytestream(), LLSpatialGroup::validate(), LLUUID::validate(), LLOctreeNode< T >::validate(), validate_draw_info(), LLSpatialGroup::validateDrawMap(), LLPanelRegionTextureInfo::validateTextureSizes(), LLFace::verify(), VertexCache::VertexCache(), LLOctreeDirtyTexture::visit(), LLOctreePick::visit(), LLOctreeRenderNonOccluded::visit(), LLOctreeDirty::visit(), wchars_to_utf8chars(), wear_inventory_category_on_avatar_step2(), wear_inventory_category_on_avatar_step3(), LLPartSysCompressedPacket::writeAlpha_range(), LLPartSysCompressedPacket::writeAlphaScaleDiffEqn_range(), LLPartSysCompressedPacket::writeEnvironment(), LLPartSysCompressedPacket::writeFlagByte(), LLDataPackerAsciiFile::writeIndentedName(), LLPngWrapper::writePng(), LLPartSysCompressedPacket::writeScale_range(), LLPartSysCompressedPacket::writeSpawn(), writeToRecorders(), LLPartSysCompressedPacket::writeVelocityOffset(), wstring_to_utf16str(), wstring_to_utf8str(), wstring_utf16_length(), wstring_utf8_length(), wstring_wstring_length_from_utf16_length(), LLCLPValue::xparse(), LLFastTimer::~LLFastTimer(), LLFloater::~LLFloater(), LLGenePool::~LLGenePool(), LLLocalIDHashMap< DATA_TYPE, SIZE >::~LLLocalIDHashMap(), LLOctreeNode< T >::~LLOctreeNode(), LLPanelDisplay::~LLPanelDisplay(), LLPanelGroup::~LLPanelGroup(), LLPanelGroupRoles::~LLPanelGroupRoles(), LLPolyMesh::~LLPolyMesh(), LLScriptLibrary::~LLScriptLibrary(), LLScrollableContainerView::~LLScrollableContainerView(), LLStringTable::~LLStringTable(), LLUndoBuffer::~LLUndoBuffer(), LLVLManager::~LLVLManager(), and LLVolumeLODGroup::~LLVolumeLODGroup().

S32 j

Definition at line 363 of file llmath.h.

Referenced by LLMatrix3::add(), LLStringBase< T >::addCRLF(), LLParticlePartition::addGeometryCount(), LLProfile::addHole(), LLJointStateBlender::addJointState(), base32_encode(), LLPipeline::blurReflectionMap(), build_copy_matrix(), build_decopy_matrix(), build_patch_dequantize_table(), build_patch_quantize_table(), LLVOWLSky::buildStripsBuffer(), LLSurfacePatch::calcNormal(), LLGLState::checkClientArrays(), LLGLState::checkTextureChannels(), LLCullResult::clear(), code_patch(), code_patch_header(), compress_patch(), LLSkyTex::create(), LLVolumeFace::createBinormals(), LLPipeline::createGLBuffers(), LLSurface::createPatchData(), LLVolumeFace::createSide(), LLSurface::createSTexture(), LLSurface::createWaterTexture(), LLMD5::decode(), decode_patch(), LLImageTGA::decodeColorMap(), LLWind::decompress(), decompress_patch(), decompress_patchv(), LLSurface::decompressDCTPatch(), LLKeyframeMotion::deserialize(), LLCloudLayer::destroy(), LLSpatialGroup::destroyGL(), LLFrameStatView::draw(), LLFastTimerView::draw(), LLFrameStats::dump(), earlyFail(), LLMD5::encode(), LLImageTGA::encode(), tut::ensure_equals(), LLCloudLayer::findCloudGroup(), forAllDrawables(), LLVLComposition::generateHeights(), LLVolume::generateSilhouetteVertices(), LLVLComposition::generateTexture(), LLSurface::generateWaterTexture(), LLFace::genVolumeBBoxes(), LLWind::getCloudVelocity(), LLCloudLayer::getDensityRegion(), LLWind::getVelocity(), gl_rect_2d_checkerboard(), LLToolBrushLand::handleMouseDown(), init(), LLPatchVertexArray::init(), LLScriptExecute::init(), LLPerlinNoise::init(), init_supported_expressions(), LLViewerImage::initClass(), LLSkyTex::initEmpty(), LLMatrix4::invert(), LLVolume::lineSegmentIntersect(), LLCloudLayer::LLCloudLayer(), LLBVHLoader::loadBVHFile(), LLPolyMeshSharedData::loadMesh(), lsa_bubble_sort(), LLToolBrushLand::modifyLandInSelectionGlobal(), LLViewerWindow::mousePointOnLandGlobal(), noise2(), LLPerlinNoise::noise2(), noise3(), LLPerlinNoise::noise3(), LLBumpImageList::onSourceLoaded(), operator!=(), operator*(), operator*=(), operator+=(), operator-=(), operator==(), parse_args(), LLPipeline::postSort(), prescan_patch(), LLScriptLSOParse::printStates(), pushBufferVerts(), pushVerts(), pushVertsColorCoded(), LLMatrix4::quaternion(), LLMatrix3::quaternion(), LLSpatialGroup::rebound(), LLVolumeGeometryManager::rebuildGeom(), LLInvFVBridge::removeBatch(), LLManipScale::renderCorners(), LLPipeline::renderForSelect(), renderOctree(), LLToolBrushLand::renderOverlay(), LLViewerParcelOverlay::renderPropertyLines(), LLDrawPoolTree::renderTree(), LLWind::renderVectors(), LLStringBase< T >::replaceTabsWithSpaces(), LLGLState::resetTextureStates(), LLSurface::resolveNormalGlobal(), LLSurface::resolvePatchRegion(), LLManipTranslate::restoreGL(), LLTabContainer::selectTab(), LLSurface::setOriginGlobal(), LLFont::setSubImageLuminanceAlpha(), LLGenePool::spawn(), LLStringBase< T >::stripNonprintable(), LLPrimitive::unpackTEField(), LLSurfacePatch::updateCompositionStats(), LLDrawable::updateDistance(), LLSurfacePatch::updateEastEdge(), LLViewerJointMesh::updateFaceData(), LLVOTree::updateGeometry(), LLViewerJointMesh::updateGeometryVectorized(), LLVOSurfacePatch::updateMainGeometry(), LLSurfacePatch::updateNormals(), LLCloudLayer::updatePuffCount(), LLCloudLayer::updatePuffOwnership(), LLCloudLayer::updatePuffs(), LLSpatialBridge::updateSpatialExtents(), LLSurfacePatch::updateVerticalStats(), LLViewerJointMesh::uploadJointMatrices(), LLSpatialGroup::validate(), LLSpatialGroup::validateDrawMap(), LLOctreeDirtyTexture::visit(), and LLOctreeRenderNonOccluded::visit().

const F64 LL_DOUBLE_TO_FIX_MAGIC = 68719476736.0*1.5

Definition at line 317 of file llmath.h.

const S32 LL_SHIFT_AMOUNT = 16

Definition at line 318 of file llmath.h.

union { ... } LLECO [static]

struct { ... } n

const F32 OO_LN2 = 1.4426950408889634073599246810019f

Definition at line 94 of file llmath.h.

const F32 OO_SQRT2 = 0.7071067811865475244008443621049f

const F32 RAD_TO_DEG = 57.295779513082320876798154814105f


Generated on Fri May 16 08:35:11 2008 for SecondLife by  doxygen 1.5.5