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-2007, 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://secondlife.com/developers/opensource/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://secondlife.com/developers/opensource/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 a, angle, b, f, F_PI, and LLVector2::normVec().

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

Definition at line 74 of file v2math.cpp.

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

F32 dist_vec ( const LLVector2 a,
const LLVector2 b 
)

Definition at line 89 of file v2math.cpp.

References a, b, fsqrtf, x, and y.

F32 dist_vec_squared ( const LLVector2 a,
const LLVector2 b 
)

Definition at line 96 of file v2math.cpp.

References a, b, x, and y.

F32 dist_vec_squared2D ( const LLVector2 a,
const LLVector2 b 
)

Definition at line 103 of file v2math.cpp.

References a, b, x, and y.

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

Definition at line 110 of file v2math.cpp.

References a, b, VX, and VY.

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

Definition at line 264 of file v2math.h.

References a.

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

Definition at line 259 of file v2math.h.

References a.

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

Definition at line 243 of file v2math.h.

References a, and b.

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

Definition at line 302 of file v2math.h.

References a.

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

Definition at line 275 of file v2math.h.

References a, and b.

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

Definition at line 248 of file v2math.h.

References a, and b.

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

Definition at line 295 of file v2math.h.

References a, and b.

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

Definition at line 231 of file v2math.h.

References a, b, and c.

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

Definition at line 281 of file v2math.h.

References a, and b.

LLVector2 operator- ( const LLVector2 a  )  [inline]

Definition at line 317 of file v2math.h.

References a.

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

Definition at line 237 of file v2math.h.

References a, b, and c.

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

Definition at line 288 of file v2math.h.

References a, and b.

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

Definition at line 253 of file v2math.h.

References a, and t.

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

Definition at line 309 of file v2math.h.

References a, and t.

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

Definition at line 218 of file v2math.h.

References a, b, VX, and VY.

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

Definition at line 337 of file v2math.h.

References a, VX, and VY.

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

Definition at line 269 of file v2math.h.

References a, and b.

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

Definition at line 322 of file v2math.h.

References i, and LLVector2::mV.

Referenced by LLVolumeFace::createCap(), LLVolumeFace::createSide(), LLVolumeFace::createUnCutCubeCap(), LLSelectMgr::getGrid(), and LLVOPartGroup::updateGeometry().


Variable Documentation

const U32 LENGTHOFVECTOR2 = 2 [static]

Definition at line 43 of file v2math.h.


Generated on Thu Jul 1 06:11:02 2010 for Second Life Viewer by  doxygen 1.4.7