v3dmath.h File Reference

High precision 3 dimensional vector. More...

#include "llerror.h"
#include "v3math.h"

Include dependency graph for v3dmath.h:

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

Go to the source code of this file.

Classes

class  LLVector3d

Typedefs

typedef LLVector3d LLGlobalVec

Functions

LLVector3d operator+ (const LLVector3d &a, const LLVector3d &b)
LLVector3d operator- (const LLVector3d &a, const LLVector3d &b)
F64 operator * (const LLVector3d &a, const LLVector3d &b)
LLVector3d operator% (const LLVector3d &a, const LLVector3d &b)
LLVector3d operator/ (const LLVector3d &a, const F64 k)
LLVector3d operator * (const LLVector3d &a, const F64 k)
LLVector3d operator * (F64 k, const LLVector3d &a)
bool operator== (const LLVector3d &a, const LLVector3d &b)
bool operator!= (const LLVector3d &a, const LLVector3d &b)
const LLVector3doperator+= (LLVector3d &a, const LLVector3d &b)
const LLVector3doperator-= (LLVector3d &a, const LLVector3d &b)
const LLVector3doperator%= (LLVector3d &a, const LLVector3d &b)
const LLVector3doperator *= (LLVector3d &a, const F64 k)
const LLVector3doperator/= (LLVector3d &a, const F64 k)
LLVector3d operator- (const LLVector3d &a)
F64 dist_vec (const LLVector3d &a, const LLVector3d &b)
F64 dist_vec_squared (const LLVector3d &a, const LLVector3d &b)
F64 dist_vec_squared2D (const LLVector3d &a, const LLVector3d &b)
LLVector3d lerp (const LLVector3d &a, const LLVector3d &b, const F64 u)
F64 angle_between (const LLVector3d &a, const LLVector3d &b)
BOOL are_parallel (const LLVector3d &a, const LLVector3d &b, const F64 epsilon)
LLVector3d projected_vec (const LLVector3d &a, const LLVector3d &b)


Detailed Description

High precision 3 dimensional vector.

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


Typedef Documentation

typedef LLVector3d LLGlobalVec

Definition at line 134 of file v3dmath.h.


Function Documentation

F64 angle_between ( const LLVector3d a,
const LLVector3d b 
) [inline]

Definition at line 406 of file v3dmath.h.

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

BOOL are_parallel ( const LLVector3d a,
const LLVector3d b,
const F64  epsilon 
) [inline]

Definition at line 419 of file v3dmath.h.

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

F64 dist_vec ( const LLVector3d a,
const LLVector3d b 
) [inline]

Definition at line 364 of file v3dmath.h.

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

F64 dist_vec_squared ( const LLVector3d a,
const LLVector3d b 
) [inline]

Definition at line 372 of file v3dmath.h.

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

F64 dist_vec_squared2D ( const LLVector3d a,
const LLVector3d b 
) [inline]

Definition at line 380 of file v3dmath.h.

References a, b, x, and y.

LLVector3d lerp ( const LLVector3d a,
const LLVector3d b,
const F64  u 
) [inline]

Definition at line 387 of file v3dmath.h.

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

LLVector3d operator * ( F64  k,
const LLVector3d a 
) [inline]

Definition at line 300 of file v3dmath.h.

References a.

LLVector3d operator * ( const LLVector3d a,
const F64  k 
) [inline]

Definition at line 295 of file v3dmath.h.

References a.

F64 operator * ( const LLVector3d a,
const LLVector3d b 
) [inline]

Definition at line 279 of file v3dmath.h.

References a, and b.

const LLVector3d& operator *= ( LLVector3d a,
const F64  k 
) [inline]

Definition at line 342 of file v3dmath.h.

References a.

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

Definition at line 312 of file v3dmath.h.

References a, and b.

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

Definition at line 284 of file v3dmath.h.

References a, and b.

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

Definition at line 335 of file v3dmath.h.

References a, and b.

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

Definition at line 267 of file v3dmath.h.

References a, b, and c.

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

Definition at line 319 of file v3dmath.h.

References a, and b.

LLVector3d operator- ( const LLVector3d a  )  [inline]

Definition at line 359 of file v3dmath.h.

References a.

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

Definition at line 273 of file v3dmath.h.

References a, b, and c.

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

Definition at line 327 of file v3dmath.h.

References a, and b.

LLVector3d operator/ ( const LLVector3d a,
const F64  k 
) [inline]

Definition at line 289 of file v3dmath.h.

References a, and t.

const LLVector3d& operator/= ( LLVector3d a,
const F64  k 
) [inline]

Definition at line 350 of file v3dmath.h.

References a, and t.

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

Definition at line 305 of file v3dmath.h.

References a, and b.

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

Definition at line 434 of file v3dmath.h.

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

Referenced by LLAgent::calcCameraPositionTargetGlobal(), LLManipRotate::dragConstrained(), LLManipScale::dragCorner(), LLManipScale::dragFace(), LLManipTranslate::handleHover(), LLManipRotate::handleMouseDownOnPart(), LLVOAvatar::idleUpdate(), LLManipRotate::renderSnapGuides(), LLAgent::resetView(), LLVOAvatar::updateCharacter(), LLVOAvatar::updateShadowFaces(), LLManipScale::updateSnapGuides(), and LLHUDText::updateVisibility().


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