v2math.h File Reference

LLVector2 class header file. More...

#include "llmath.h"

Include dependency graph for v2math.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LLVector2

Functions

F32 angle_between (const LLVector2 &a, const LLVector2 &b)
BOOL are_parallel (const LLVector2 &a, const LLVector2 &b, F32 epsilon=F_APPROXIMATELY_ZERO)
F32 dist_vec (const LLVector2 &a, const LLVector2 &b)
F32 dist_vec_squared (const LLVector2 &a, const LLVector2 &b)
F32 dist_vec_squared2D (const LLVector2 &a, const LLVector2 &b)
LLVector2 lerp (const LLVector2 &a, const LLVector2 &b, F32 u)
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)
void update_min_max (LLVector2 &min, LLVector2 &max, const LLVector2 &pos)
std::ostream & operator<< (std::ostream &s, const LLVector2 &a)

Variables

static const U32 LENGTHOFVECTOR2 = 2


Detailed Description

LLVector2 class header file.

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 v2math.h.


Function Documentation

F32 angle_between ( const LLVector2 a,
const LLVector2 b 
)

Definition at line 61 of file v2math.cpp.

References F_PI, and LLVector2::normVec().

Referenced by LLAgent::autoPilot(), LLJointSolverRP3::solve(), and LLVOAvatar::updateCharacter().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL are_parallel ( const LLVector2 a,
const LLVector2 b,
F32  epsilon = F_APPROXIMATELY_ZERO 
)

Definition at line 74 of file v2math.cpp.

References dot(), FALSE, LLVector2::normVec(), and TRUE.

Referenced by LLJointSolverRP3::solve().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 dist_vec ( const LLVector2 a,
const LLVector2 b 
)

F32 dist_vec_squared ( const LLVector2 a,
const LLVector2 b 
)

Definition at line 96 of file v2math.cpp.

References LLVector2::mV.

Referenced by LLKeyframeMotion::applyConstraint(), LLToolSelectRect::handleRectangleSelection(), process_avatar_sit_response(), and LLDrawable::updateXform().

Here is the caller graph for this function:

F32 dist_vec_squared2D ( const LLVector2 a,
const LLVector2 b 
)

Definition at line 103 of file v2math.cpp.

References LLVector2::mV.

Referenced by LLViewerParcelOverlay::renderPropertyLines().

Here is the caller graph for this function:

LLVector2 lerp ( const LLVector2 a,
const LLVector2 b,
F32  u 
)

Definition at line 110 of file v2math.cpp.

References LLVector2::LLVector2(), LLVector2::mV, VX, and VY.

Here is the call graph for this function:

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

Definition at line 352 of file v2math.h.

References LLVector2::mV.

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

Definition at line 325 of file v2math.h.

References LLVector2::LLVector2(), and LLVector2::mV.

Here is the call graph for this function:

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

Definition at line 372 of file v2math.h.

References LLVector2::mV.

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

Definition at line 341 of file v2math.h.

References LLVector2::LLVector2(), and LLVector2::mV.

Here is the call graph for this function:

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

Definition at line 336 of file v2math.h.

References LLVector2::LLVector2(), and LLVector2::mV.

Here is the call graph for this function:

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

Definition at line 320 of file v2math.h.

References LLVector2::mV.

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

Definition at line 379 of file v2math.h.

References LLVector2::mV.

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

Definition at line 308 of file v2math.h.

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

Definition at line 358 of file v2math.h.

References LLVector2::mV.

LLVector2 operator- ( const LLVector2 a  )  [inline]

Definition at line 394 of file v2math.h.

References LLVector2::LLVector2(), and LLVector2::mV.

Here is the call graph for this function:

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

Definition at line 314 of file v2math.h.

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

Definition at line 365 of file v2math.h.

References LLVector2::mV.

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

Definition at line 330 of file v2math.h.

References LLVector2::LLVector2(), and LLVector2::mV.

Here is the call graph for this function:

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

Definition at line 386 of file v2math.h.

References LLVector2::mV.

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

Definition at line 295 of file v2math.h.

References LLVector2::mV, VX, and VY.

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

Definition at line 414 of file v2math.h.

References LLVector2::mV, VX, and VY.

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

Definition at line 346 of file v2math.h.

References LLVector2::mV.

void update_min_max ( LLVector2 min,
LLVector2 max,
const LLVector2 pos 
) [inline]

Definition at line 399 of file v2math.h.

References i, and LLVector2::mV.

Referenced by LLVolumeFace::createCap(), LLVolumeFace::createSide(), LLVolumeFace::createUnCutCubeCap(), LLSelectMgr::getGrid(), and LLVOAvatar::getSpatialExtents().

Here is the caller graph for this function:


Variable Documentation

const U32 LENGTHOFVECTOR2 = 2 [static]

Definition at line 43 of file v2math.h.


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