v3math.h File Reference

LLVector3 class header file. More...

#include "llerror.h"
#include "llmath.h"
#include "llsd.h"

Include dependency graph for v3math.h:

Go to the source code of this file.

Classes

class  LLVector3

Typedefs

typedef LLVector3 LLSimLocalVec

Functions

F32 angle_between (const LLVector3 &a, const LLVector3 &b)
BOOL are_parallel (const LLVector3 &a, const LLVector3 &b, F32 epsilon=F_APPROXIMATELY_ZERO)
F32 dist_vec (const LLVector3 &a, const LLVector3 &b)
F32 dist_vec_squared (const LLVector3 &a, const LLVector3 &b)
F32 dist_vec_squared2D (const LLVector3 &a, const LLVector3 &b)
LLVector3 projected_vec (const LLVector3 &a, const LLVector3 &b)
LLVector3 lerp (const LLVector3 &a, const LLVector3 &b, F32 u)
LLVector3 operator+ (const LLVector3 &a, const LLVector3 &b)
LLVector3 operator- (const LLVector3 &a, const LLVector3 &b)
F32 operator* (const LLVector3 &a, const LLVector3 &b)
LLVector3 operator% (const LLVector3 &a, const LLVector3 &b)
LLVector3 operator/ (const LLVector3 &a, F32 k)
LLVector3 operator* (const LLVector3 &a, F32 k)
LLVector3 operator* (F32 k, const LLVector3 &a)
bool operator== (const LLVector3 &a, const LLVector3 &b)
bool operator!= (const LLVector3 &a, const LLVector3 &b)
bool operator< (const LLVector3 &a, const LLVector3 &b)
const LLVector3operator+= (LLVector3 &a, const LLVector3 &b)
const LLVector3operator-= (LLVector3 &a, const LLVector3 &b)
const LLVector3operator%= (LLVector3 &a, const LLVector3 &b)
const LLVector3operator*= (LLVector3 &a, F32 k)
const LLVector3operator*= (LLVector3 &a, const LLVector3 &b)
const LLVector3operator/= (LLVector3 &a, F32 k)
LLVector3 operator- (const LLVector3 &a)
void update_min_max (LLVector3 &min, LLVector3 &max, const LLVector3 &pos)

Variables

static const U32 LENGTHOFVECTOR3 = 3


Detailed Description

LLVector3 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 v3math.h.


Typedef Documentation

Definition at line 153 of file v3math.h.


Function Documentation

F32 angle_between ( const LLVector3 a,
const LLVector3 b 
) [inline]

Definition at line 530 of file v3math.h.

References F_PI, and LLVector3::normalize().

Here is the call graph for this function:

BOOL are_parallel ( const LLVector3 a,
const LLVector3 b,
F32  epsilon = F_APPROXIMATELY_ZERO 
) [inline]

Definition at line 543 of file v3math.h.

References dot(), FALSE, LLVector3::normalize(), and TRUE.

Here is the call graph for this function:

F32 dist_vec ( const LLVector3 a,
const LLVector3 b 
) [inline]

Definition at line 467 of file v3math.h.

References fsqrtf, and LLVector3::mV.

F32 dist_vec_squared ( const LLVector3 a,
const LLVector3 b 
) [inline]

Definition at line 475 of file v3math.h.

References LLVector3::mV.

F32 dist_vec_squared2D ( const LLVector3 a,
const LLVector3 b 
) [inline]

Definition at line 483 of file v3math.h.

References LLVector3::mV.

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

Definition at line 497 of file v3math.h.

References LLVector3::LLVector3(), LLVector3::mV, VX, VY, and VZ.

Here is the call graph for this function:

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

Definition at line 398 of file v3math.h.

References LLVector3::mV.

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

Definition at line 370 of file v3math.h.

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

Here is the call graph for this function:

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

Definition at line 430 of file v3math.h.

References LLVector3::mV.

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

Definition at line 386 of file v3math.h.

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

Here is the call graph for this function:

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

Definition at line 381 of file v3math.h.

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

Here is the call graph for this function:

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

Definition at line 365 of file v3math.h.

References LLVector3::mV.

const LLVector3& operator*= ( LLVector3 a,
const LLVector3 b 
) [inline]

Definition at line 445 of file v3math.h.

References LLVector3::mV.

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

Definition at line 437 of file v3math.h.

References LLVector3::mV.

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

Definition at line 353 of file v3math.h.

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

Definition at line 414 of file v3math.h.

References LLVector3::mV.

LLVector3 operator- ( const LLVector3 a  )  [inline]

Definition at line 462 of file v3math.h.

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

Here is the call graph for this function:

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

Definition at line 359 of file v3math.h.

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

Definition at line 422 of file v3math.h.

References LLVector3::mV.

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

Definition at line 375 of file v3math.h.

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

Here is the call graph for this function:

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

Definition at line 453 of file v3math.h.

References LLVector3::mV.

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

Definition at line 405 of file v3math.h.

References LLVector3::mV.

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

Definition at line 391 of file v3math.h.

References LLVector3::mV.

LLVector3 projected_vec ( const LLVector3 a,
const LLVector3 b 
) [inline]

Definition at line 490 of file v3math.h.

References LLVector3::normalize().

Here is the call graph for this function:

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

Definition at line 515 of file v3math.h.

References i, and LLVector3::mV.


Variable Documentation

const U32 LENGTHOFVECTOR3 = 3 [static]

Definition at line 46 of file v3math.h.


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