#include <v2math.h>
Definition at line 45 of file v2math.h.
LLVector2::LLVector2 | ( | void | ) | [inline] |
Definition at line 122 of file v2math.h.
Referenced by lerp(), operator%(), operator*(), operator-(), and operator/().
LLVector2::LLVector2 | ( | const F32 * | vec | ) | [inline] |
void LLVector2::clear | ( | void | ) | [inline] |
void LLVector2::setZero | ( | void | ) | [inline] |
void LLVector2::clearVec | ( | void | ) | [inline] |
void LLVector2::zeroVec | ( | void | ) | [inline] |
void LLVector2::set | ( | const LLVector2 & | vec | ) | [inline] |
void LLVector2::set | ( | const F32 * | vec | ) | [inline] |
Definition at line 189 of file v2math.h.
Referenced by LLViewerWindow::calcDisplayScale(), LLProfile::genNormals(), LLVOClouds::getGeometry(), LLFace::getGeometryVolume(), LLViewerWindow::handlePerFrameHover(), LLManipTranslate::highlightManipulators(), LLManipScale::highlightManipulators(), LLViewerWindow::LLViewerWindow(), LLPath::PathPt::PathPt(), LLPipeline::renderBloom(), LLSnapshotLivePreview::savePostcard(), LLVolumeImplFlexible::setAttributesOfAllSections(), LLViewerWindow::thumbnailSnapshot(), LLHUDText::updateAll(), LLViewerPartGroup::updateParticles(), and LLHUDText::updateScreenPos().
void LLVector2::setVec | ( | const LLVector2 & | vec | ) | [inline] |
void LLVector2::setVec | ( | const F32 * | vec | ) | [inline] |
F32 LLVector2::length | ( | void | ) | const [inline] |
F32 LLVector2::lengthSquared | ( | void | ) | const [inline] |
F32 LLVector2::normalize | ( | void | ) | [inline] |
F32 LLVector2::magVec | ( | void | ) | const [inline] |
Definition at line 242 of file v2math.h.
Referenced by calc_desired_size(), and LLViewerWindow::handlePerFrameHover().
F32 LLVector2::magVecSquared | ( | void | ) | const [inline] |
Definition at line 248 of file v2math.h.
References mV.
Referenced by LLManipTranslate::highlightManipulators(), and LLManipScale::highlightManipulators().
F32 LLVector2::normVec | ( | void | ) | [inline] |
Definition at line 254 of file v2math.h.
References FP_MAG_THRESHOLD, fsqrtf, and mV.
Referenced by angle_between(), are_parallel(), LLVOPartGroup::getGeometry(), LLMenuGL::handleHover(), LLManipTranslate::highlightManipulators(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), and LLHUDText::updateAll().
BOOL LLVector2::isNull | ( | ) | [inline] |
BOOL LLVector2::isExactlyZero | ( | ) | const [inline] |
F32 LLVector2::operator[] | ( | int | idx | ) | const [inline] |
F32& LLVector2::operator[] | ( | int | idx | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | s, | |
const LLVector2 & | a | |||
) | [friend] |
Definition at line 48 of file v2math.h.
Referenced by abs(), LLViewerPartGroup::addPart(), LLViewerWindow::analyzeHit(), calc_binormal_from_triangle(), LLViewerWindow::calcDisplayScale(), LLAgent::calcFocusOffset(), LLModalDialog::centerOnScreen(), clear(), clearVec(), LLVolumeFace::createUnCutCubeCap(), dist_vec(), dist_vec_squared(), dist_vec_squared2D(), LLViewerWindow::draw(), LLFloaterPostcard::draw(), LLLineEditor::draw(), LLButton::draw(), LLTextEditor::drawCursor(), LLViewerWindow::drawDebugText(), LLViewerWindow::drawPickBuffer(), LLSurfacePatch::eval(), LLVolumeXml::exportPathParams(), LLVolume::generate(), LLPath::generate(), LLPipeline::generateImpostor(), LLPolyVertexMask::generateMask(), LLPath::genNGon(), LLPathParams::getBeginScale(), LLPathParams::getEndScale(), LLVOPartGroup::getGeometry(), LLFace::getGeometryVolume(), LLViewerCamera::getPixelVectors(), LLTextEditor::getPreeditFontSize(), LLLineEditor::getPreeditFontSize(), LLWaterParamSet::getVector2(), LLUI::getWindowSize(), gl_segmented_rect_2d_fragment_tex(), gl_segmented_rect_2d_tex(), gl_segmented_rect_3d_tex(), LLUI::glPointToScreen(), LLViewerWindow::handleDoubleClick(), LLViewerWindow::handleMouseDown(), LLViewerWindow::handleMouseMove(), LLViewerWindow::handleMouseUp(), LLViewerWindow::handlePerFrameHover(), LLViewerWindow::handleRightMouseDown(), LLViewerWindow::handleRightMouseUp(), LLViewerWindow::hitObjectOrLandGlobalAsync(), LLViewerWindow::hitUIElementAsync(), LLVOAvatar::idleUpdate(), LLViewerWindow::initFonts(), isExactlyZero(), isNull(), length(), lengthSquared(), lerp(), ll_sd_from_vector2(), ll_vector2_from_sd(), LLVector2(), LLViewerWindow::LLViewerWindow(), magVec(), magVecSquared(), normalize(), normVec(), operator!=(), operator%(), operator%=(), operator*(), operator*=(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<<(), WaterVector2Control::operator=(), operator==(), operator[](), LLPartData::pack(), LLDataPackerAsciiFile::packVector2(), LLDataPackerAsciiBuffer::packVector2(), LLDataPackerBinaryBuffer::packVector2(), LLViewerWindow::performPick(), planarProjection(), LLViewerCamera::projectPosAgentToScreen(), LLViewerCamera::projectPosAgentToScreenEdge(), LLViewerPartSim::put(), render_disconnected_background(), LLPipeline::renderBloom(), LLVOAvatar::renderImpostor(), LLSelectNode::renderOneSilhouette(), LLFace::renderSelectedUV(), LLHUDText::renderText(), LLManip::renderXYZ(), LLViewerWindow::reshape(), scaleVec(), LLUI::screenPointToGL(), set(), LLVolumeImplFlexible::setAttributesOfAllSections(), LLUI::setCursorPositionScreen(), LLPartData::setEndScale(), LLUI::setLineWidth(), LLPartData::setStartScale(), setVec(), setZero(), LLDrawPoolWater::shade(), LLComboBox::showList(), LLPartData::unpack(), LLDataPackerAsciiFile::unpackVector2(), LLDataPackerAsciiBuffer::unpackVector2(), LLDataPackerBinaryBuffer::unpackVector2(), update_min_max(), LLHUDText::updateAll(), LLVOPartGroup::updateGeometry(), LLScreenClipRect::updateScissorRegion(), LLHUDText::updateScreenPos(), LLHUDText::updateVisibility(), xform(), and zeroVec().
LLVector2 LLVector2::zero [static] |
Definition at line 50 of file v2math.h.
Referenced by gl_segmented_rect_2d_fragment_tex(), gl_segmented_rect_2d_tex(), and LLHUDText::updateAll().