LLVector2 Class Reference

#include <v2math.h>

Collaboration diagram for LLVector2:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLVector2 ()
 LLVector2 (F32 x, F32 y)
 LLVector2 (const F32 *vec)
void clear ()
void setZero ()
void clearVec ()
void zeroVec ()
void set (F32 x, F32 y)
void set (const LLVector2 &vec)
void set (const F32 *vec)
void setVec (F32 x, F32 y)
void setVec (const LLVector2 &vec)
void setVec (const F32 *vec)
F32 length () const
F32 lengthSquared () const
F32 normalize ()
F32 magVec () const
F32 magVecSquared () const
F32 normVec ()
BOOL abs ()
const LLVector2scaleVec (const LLVector2 &vec)
BOOL isNull ()
BOOL isExactlyZero () const
F32 operator[] (int idx) const
F32operator[] (int idx)

Public Attributes

F32 mV [LENGTHOFVECTOR2]

Static Public Attributes

static LLVector2 zero

Friends

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


Detailed Description

Definition at line 45 of file v2math.h.


Constructor & Destructor Documentation

LLVector2::LLVector2 ( void   )  [inline]

Definition at line 122 of file v2math.h.

References mV, VX, and VY.

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

Here is the caller graph for this function:

LLVector2::LLVector2 ( F32  x,
F32  y 
) [inline]

Definition at line 128 of file v2math.h.

References mV, VX, and VY.

LLVector2::LLVector2 ( const F32 vec  )  [inline]

Definition at line 134 of file v2math.h.

References mV, VX, and VY.


Member Function Documentation

void LLVector2::clear ( void   )  [inline]

Definition at line 143 of file v2math.h.

References mV, VX, and VY.

void LLVector2::setZero ( void   )  [inline]

Definition at line 149 of file v2math.h.

References mV, VX, and VY.

void LLVector2::clearVec ( void   )  [inline]

Definition at line 156 of file v2math.h.

References mV, VX, and VY.

Referenced by LLHUDText::updateAll().

Here is the caller graph for this function:

void LLVector2::zeroVec ( void   )  [inline]

Definition at line 163 of file v2math.h.

References mV, VX, and VY.

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

Definition at line 169 of file v2math.h.

References mV, VX, and VY.

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

Definition at line 175 of file v2math.h.

References mV, VX, and VY.

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

Definition at line 181 of file v2math.h.

References mV, VX, and VY.

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

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

Definition at line 196 of file v2math.h.

References mV, VX, and VY.

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

Definition at line 203 of file v2math.h.

References mV, VX, and VY.

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

Definition at line 211 of file v2math.h.

References fsqrtf, and mV.

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

Definition at line 216 of file v2math.h.

References mV.

F32 LLVector2::normalize ( void   )  [inline]

Definition at line 221 of file v2math.h.

References FP_MAG_THRESHOLD, fsqrtf, and mV.

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

Definition at line 242 of file v2math.h.

References fsqrtf, and mV.

Referenced by calc_desired_size(), and LLViewerWindow::handlePerFrameHover().

Here is the caller graph for this function:

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

Definition at line 248 of file v2math.h.

References mV.

Referenced by LLManipTranslate::highlightManipulators(), and LLManipScale::highlightManipulators().

Here is the caller graph for this function:

F32 LLVector2::normVec ( void   )  [inline]

BOOL LLVector2::abs (  ) 

Definition at line 50 of file v2math.cpp.

References FALSE, mV, and TRUE.

const LLVector2 & LLVector2::scaleVec ( const LLVector2 vec  )  [inline]

Definition at line 274 of file v2math.h.

References mV, VX, and VY.

BOOL LLVector2::isNull (  )  [inline]

Definition at line 282 of file v2math.h.

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

BOOL LLVector2::isExactlyZero (  )  const [inline]

Definition at line 83 of file v2math.h.

References mV, VX, and VY.

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

Definition at line 85 of file v2math.h.

References mV.

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

Definition at line 86 of file v2math.h.

References mV.


Friends And Related Function Documentation

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

Definition at line 295 of file v2math.h.

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

Definition at line 308 of file v2math.h.

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

Definition at line 314 of file v2math.h.

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

Definition at line 320 of file v2math.h.

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

Definition at line 325 of file v2math.h.

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

Definition at line 330 of file v2math.h.

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

Definition at line 336 of file v2math.h.

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

Definition at line 341 of file v2math.h.

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

Definition at line 346 of file v2math.h.

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

Definition at line 352 of file v2math.h.

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

Definition at line 358 of file v2math.h.

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

Definition at line 365 of file v2math.h.

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

Definition at line 372 of file v2math.h.

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

Definition at line 379 of file v2math.h.

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

Definition at line 386 of file v2math.h.

LLVector2 operator- ( const LLVector2 a  )  [friend]

Definition at line 394 of file v2math.h.

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

Definition at line 414 of file v2math.h.


Member Data Documentation

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


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

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