llquaternion.cpp File Reference

LLQuaternion class implementation. More...

#include "linden_common.h"
#include "llquaternion.h"
#include "llmath.h"
#include "v3math.h"
#include "v3dmath.h"
#include "v4math.h"
#include "m4math.h"
#include "m3math.h"
#include "llquantize.h"

Include dependency graph for llquaternion.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const LLQuaternion &a)
LLQuaternion operator* (const LLQuaternion &a, const LLQuaternion &b)
LLVector4 operator* (const LLVector4 &a, const LLQuaternion &rot)
LLVector3 operator* (const LLVector3 &a, const LLQuaternion &rot)
LLVector3d operator* (const LLVector3d &a, const LLQuaternion &rot)
F32 dot (const LLQuaternion &a, const LLQuaternion &b)
LLQuaternion lerp (F32 t, const LLQuaternion &q)
LLQuaternion lerp (F32 t, const LLQuaternion &p, const LLQuaternion &q)
LLQuaternion slerp (F32 u, const LLQuaternion &a, const LLQuaternion &b)
LLQuaternion nlerp (F32 t, const LLQuaternion &a, const LLQuaternion &b)
LLQuaternion nlerp (F32 t, const LLQuaternion &q)
LLQuaternion slerp (F32 t, const LLQuaternion &q)
LLQuaternion mayaQ (F32 xRot, F32 yRot, F32 zRot, LLQuaternion::Order order)
const char * OrderToString (const LLQuaternion::Order order)
LLQuaternion::Order StringToOrder (const char *str)


Detailed Description

LLQuaternion class implementation.

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 llquaternion.cpp.


Function Documentation

F32 dot ( const LLQuaternion a,
const LLQuaternion b 
)

LLQuaternion lerp ( F32  t,
const LLQuaternion p,
const LLQuaternion q 
)

Definition at line 634 of file llquaternion.cpp.

References LLQuaternion::mQ, LLQuaternion::normalize(), VW, VX, VY, and VZ.

Here is the call graph for this function:

LLQuaternion lerp ( F32  t,
const LLQuaternion q 
)

Definition at line 623 of file llquaternion.cpp.

References LLQuaternion::mQ, LLQuaternion::normalize(), VW, VX, VY, and VZ.

Here is the call graph for this function:

LLQuaternion mayaQ ( F32  xRot,
F32  yRot,
F32  zRot,
LLQuaternion::Order  order 
)

LLQuaternion nlerp ( F32  t,
const LLQuaternion q 
)

Definition at line 709 of file llquaternion.cpp.

References LLQuaternion::lerp, LLQuaternion::mQ, LLQuaternion::slerp, and VW.

LLQuaternion nlerp ( F32  t,
const LLQuaternion a,
const LLQuaternion b 
)

LLVector3d operator* ( const LLVector3d a,
const LLQuaternion rot 
)

Definition at line 587 of file llquaternion.cpp.

References LLVector3d::mdV, LLQuaternion::mQ, VW, VX, VY, and VZ.

LLVector3 operator* ( const LLVector3 a,
const LLQuaternion rot 
)

Definition at line 573 of file llquaternion.cpp.

References LLQuaternion::mQ, LLVector3::mV, VW, VX, VY, and VZ.

LLVector4 operator* ( const LLVector4 a,
const LLQuaternion rot 
)

Definition at line 559 of file llquaternion.cpp.

References LLQuaternion::mQ, LLVector4::mV, VW, VX, VY, and VZ.

LLQuaternion operator* ( const LLQuaternion a,
const LLQuaternion b 
)

Definition at line 536 of file llquaternion.cpp.

References LLQuaternion::mQ.

std::ostream& operator<< ( std::ostream &  s,
const LLQuaternion a 
)

Definition at line 526 of file llquaternion.cpp.

References LLQuaternion::mQ, VW, VX, VY, and VZ.

const char* OrderToString ( const LLQuaternion::Order  order  ) 

LLQuaternion slerp ( F32  t,
const LLQuaternion q 
)

Definition at line 722 of file llquaternion.cpp.

References LLQuaternion::mQ, VW, VX, VY, and VZ.

LLQuaternion slerp ( F32  u,
const LLQuaternion a,
const LLQuaternion b 
)

LLQuaternion::Order StringToOrder ( const char *  str  ) 

Definition at line 820 of file llquaternion.cpp.

References LLQuaternion::XYZ, LLQuaternion::XZY, LLQuaternion::YXZ, LLQuaternion::YZX, LLQuaternion::ZXY, and LLQuaternion::ZYX.

Referenced by bvhStringToOrder(), and LLKeyframeMotion::deserialize().

Here is the caller graph for this function:


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