v3math.h File Reference

LLVector3 class header file. More...

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

Include dependency graph for v3math.h:

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

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


Typedef Documentation

typedef LLVector3 LLSimLocalVec

Definition at line 138 of file v3math.h.


Function Documentation

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

Definition at line 437 of file v3math.h.

References a, angle, b, f, F_PI, and LLVector3::normVec().

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

Definition at line 450 of file v3math.h.

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

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

Definition at line 374 of file v3math.h.

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

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

Definition at line 382 of file v3math.h.

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

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

Definition at line 390 of file v3math.h.

References a, b, x, and y.

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

Definition at line 404 of file v3math.h.

References a, b, VX, VY, and VZ.

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

Definition at line 293 of file v3math.h.

References a.

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

Definition at line 288 of file v3math.h.

References a.

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

Definition at line 272 of file v3math.h.

References a, and b.

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

Definition at line 352 of file v3math.h.

References a, and b.

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

Definition at line 344 of file v3math.h.

References a.

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

Definition at line 305 of file v3math.h.

References a, and b.

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

Definition at line 277 of file v3math.h.

References a, and b.

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

Definition at line 337 of file v3math.h.

References a, and b.

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

Definition at line 260 of file v3math.h.

References a, b, and c.

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

Definition at line 321 of file v3math.h.

References a, and b.

LLVector3 operator- ( const LLVector3 a  )  [inline]

Definition at line 369 of file v3math.h.

References a.

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

Definition at line 266 of file v3math.h.

References a, b, and c.

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

Definition at line 329 of file v3math.h.

References a, and b.

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

Definition at line 282 of file v3math.h.

References a, and t.

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

Definition at line 360 of file v3math.h.

References a, and t.

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

Definition at line 312 of file v3math.h.

References a, and b.

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

Definition at line 298 of file v3math.h.

References a, and b.

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

Definition at line 397 of file v3math.h.

References a, b, and LLVector3::normVec().

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

Definition at line 422 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 Thu Jul 1 06:11:02 2010 for Second Life Viewer by  doxygen 1.4.7