<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:07 CET 2013 -->
<TITLE>
Quaternion (libgdx API)
</TITLE>
<META NAME="date" CONTENT="2013-01-27">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Quaternion (libgdx API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package
</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class
</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Quaternion.html"><FONT CLASS="NavBarFont1"><B>Use
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help
</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
libgdx API
<style>
body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold }
.TableHeadingColor { background:#EEEEFF; }
a { text-decoration:none }
a:hover { text-decoration:underline }
a:link, a:visited { color:blue }
table { border:0px }
.TableRowColor td:first-child { border-left:1px solid black }
.TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
hr { border:0px; border-bottom:1px solid #333366; }
</style>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math"><B>PREV CLASS
</B></A>
<A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math"><B>NEXT CLASS
</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/badlogic/gdx/math/Quaternion.html" target="_top"><B>FRAMES
</B></A>
<A HREF="Quaternion.html" target="_top"><B>NO FRAMES
</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes
</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:
NESTED
|
<A HREF="#field_summary">FIELD
</A> |
<A HREF="#constructor_summary">CONSTR
</A> |
<A HREF="#method_summary">METHOD
</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:
<A HREF="#field_detail">FIELD
</A> |
<A HREF="#constructor_detail">CONSTR
</A> |
<A HREF="#method_detail">METHOD
</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.badlogic.gdx.math
</FONT>
<BR>
Class Quaternion
</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.math.Quaternion
</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:
</B> <DD>java.io.Serializable
</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class
<B>Quaternion
</B><DT>extends java.lang.Object
<DT>implements java.io.Serializable
</DL>
</PRE>
<P>
A simple quaternion class. See http://en.wikipedia.org/wiki/Quaternion for more information.
<P>
<P>
<DL>
<DT><B>Author:
</B></DT>
<DD>badlogicgames@gmail.com, vesuvio
</DD>
<DT><B>See Also:
</B><DD><A HREF="../../../../serialized-form.html#com.badlogic.gdx.math.Quaternion">Serialized Form
</A></DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#w">w
</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#x">x
</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#y">y
</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#z">z
</A></B></CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#Quaternion()">Quaternion
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#Quaternion(float, float, float, float)">Quaternion
</A></B>(float
x,
float
y,
float
z,
float
w)
</CODE>
<BR>
Constructor, sets the four components of the quaternion.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#Quaternion(com.badlogic.gdx.math.Quaternion)">Quaternion
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> quaternion)
</CODE>
<BR>
Constructor, sets the quaternion components from the given quaternion.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#Quaternion(com.badlogic.gdx.math.Vector3, float)">Quaternion
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> axis,
float
angle)
</CODE>
<BR>
Constructor, sets the quaternion from the given axis vector and the angle around that axis in degrees.
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#conjugate()">conjugate
</A></B>()
</CODE>
<BR>
Conjugate the quaternion.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#cpy()">cpy
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#dot(com.badlogic.gdx.math.Quaternion)">dot
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> other)
</CODE>
<BR>
Dot product between this and the other quaternion.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#equals(java.lang.Object)">equals
</A></B>(java.lang.Object
o)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#idt()">idt
</A></B>()
</CODE>
<BR>
Sets the quaternion to an identity Quaternion
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#len()">len
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#len2()">len2
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#mul(float)">mul
</A></B>(float
scalar)
</CODE>
<BR>
Multiplies the components of this quaternion with the given scalar.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#mul(com.badlogic.gdx.math.Quaternion)">mul
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> q)
</CODE>
<BR>
Multiplies this quaternion with another one
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#mulLeft(com.badlogic.gdx.math.Quaternion)">mulLeft
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> q)
</CODE>
<BR>
Multiplies this quaternion with another one in the form of q * this
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#nor()">nor
</A></B>()
</CODE>
<BR>
Normalizes this quaternion to unit length
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#set(float, float, float, float)">set
</A></B>(float
x,
float
y,
float
z,
float
w)
</CODE>
<BR>
Sets the components of the quaternion
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#set(com.badlogic.gdx.math.Quaternion)">set
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> quaternion)
</CODE>
<BR>
Sets the quaternion components from the given quaternion.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#set(com.badlogic.gdx.math.Vector3, float)">set
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> axis,
float
angle)
</CODE>
<BR>
Sets the quaternion components from the given axis and angle around that axis.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#setEulerAngles(float, float, float)">setEulerAngles
</A></B>(float
yaw,
float
pitch,
float
roll)
</CODE>
<BR>
Sets the quaternion to the given euler angles.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#setFromAxes(float, float, float, float, float, float, float, float, float)">setFromAxes
</A></B>(float
xx,
float
xy,
float
xz,
float
yx,
float
yy,
float
yz,
float
zx,
float
zy,
float
zz)
</CODE>
<BR>
Sets the Quaternion from the given x-, y- and z-axis which have to be orthonormal.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#setFromAxis(float, float, float, float)">setFromAxis
</A></B>(float
x,
float
y,
float
z,
float
angle)
</CODE>
<BR>
Sets the quaternion components from the given axis and angle around that axis.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#setFromAxis(com.badlogic.gdx.math.Vector3, float)">setFromAxis
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> axis,
float
angle)
</CODE>
<BR>
Sets the quaternion components from the given axis and angle around that axis.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#setFromCross(float, float, float, float, float, float)">setFromCross
</A></B>(float
x1,
float
y1,
float
z1,
float
x2,
float
y2,
float
z2)
</CODE>
<BR>
Set this quaternion to the rotation between two vectors.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#setFromCross(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)">setFromCross
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> v1,
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> v2)
</CODE>
<BR>
Set this quaternion to the rotation between two vectors.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#setFromMatrix(com.badlogic.gdx.math.Matrix4)">setFromMatrix
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4
</A> matrix)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#slerp(com.badlogic.gdx.math.Quaternion, float)">slerp
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> end,
float
alpha)
</CODE>
<BR>
Spherical linear interpolation between this quaternion and the other quaternion, based on the alpha value in the range
[0,1].
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#toMatrix(float[])">toMatrix
</A></B>(float[]
matrix)
</CODE>
<BR>
Fills a 4x4 matrix with the rotation matrix represented by this quaternion.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#toString()">toString
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/math/Quaternion.html#transform(com.badlogic.gdx.math.Vector3)">transform
</A></B>(
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> v)
</CODE>
<BR>
Transforms the given vector using this quaternion
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object
</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="x"><!-- --></A><H3>
x
</H3>
<PRE>
public float
<B>x
</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="y"><!-- --></A><H3>
y
</H3>
<PRE>
public float
<B>y
</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="z"><!-- --></A><H3>
z
</H3>
<PRE>
public float
<B>z
</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="w"><!-- --></A><H3>
w
</H3>
<PRE>
public float
<B>w
</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="Quaternion(float, float, float, float)"><!-- --></A><H3>
Quaternion
</H3>
<PRE>
public
<B>Quaternion
</B>(float
x,
float
y,
float
z,
float
w)
</PRE>
<DL>
<DD>Constructor, sets the four components of the quaternion.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>x
</CODE> - The x-component
<DD><CODE>y
</CODE> - The y-component
<DD><CODE>z
</CODE> - The z-component
<DD><CODE>w
</CODE> - The w-component
</DL>
</DL>
<HR>
<A NAME="Quaternion()"><!-- --></A><H3>
Quaternion
</H3>
<PRE>
public
<B>Quaternion
</B>()
</PRE>
<DL>
</DL>
<HR>
<A NAME="Quaternion(com.badlogic.gdx.math.Quaternion)"><!-- --></A><H3>
Quaternion
</H3>
<PRE>
public
<B>Quaternion
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> quaternion)
</PRE>
<DL>
<DD>Constructor, sets the quaternion components from the given quaternion.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>quaternion
</CODE> - The quaternion to copy.
</DL>
</DL>
<HR>
<A NAME="Quaternion(com.badlogic.gdx.math.Vector3, float)"><!-- --></A><H3>
Quaternion
</H3>
<PRE>
public
<B>Quaternion
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> axis,
float
angle)
</PRE>
<DL>
<DD>Constructor, sets the quaternion from the given axis vector and the angle around that axis in degrees.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>axis
</CODE> - The axis
<DD><CODE>angle
</CODE> - The angle in degrees.
</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="set(float, float, float, float)"><!-- --></A><H3>
set
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>set
</B>(float
x,
float
y,
float
z,
float
w)
</PRE>
<DL>
<DD>Sets the components of the quaternion
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>x
</CODE> - The x-component
<DD><CODE>y
</CODE> - The y-component
<DD><CODE>z
</CODE> - The z-component
<DD><CODE>w
</CODE> - The w-component
<DT><B>Returns:
</B><DD>This quaternion for chaining
</DL>
</DD>
</DL>
<HR>
<A NAME="set(com.badlogic.gdx.math.Quaternion)"><!-- --></A><H3>
set
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>set
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> quaternion)
</PRE>
<DL>
<DD>Sets the quaternion components from the given quaternion.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>quaternion
</CODE> - The quaternion.
<DT><B>Returns:
</B><DD>This quaternion for chaining.
</DL>
</DD>
</DL>
<HR>
<A NAME="set(com.badlogic.gdx.math.Vector3, float)"><!-- --></A><H3>
set
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>set
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> axis,
float
angle)
</PRE>
<DL>
<DD>Sets the quaternion components from the given axis and angle around that axis.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>axis
</CODE> - The axis
<DD><CODE>angle
</CODE> - The angle in degrees
<DT><B>Returns:
</B><DD>This quaternion for chaining.
</DL>
</DD>
</DL>
<HR>
<A NAME="cpy()"><!-- --></A><H3>
cpy
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>cpy
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:
</B><DD>a copy of this quaternion
</DL>
</DD>
</DL>
<HR>
<A NAME="len()"><!-- --></A><H3>
len
</H3>
<PRE>
public float
<B>len
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:
</B><DD>the euclidian length of this quaternion
</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString
</H3>
<PRE>
public java.lang.String
<B>toString
</B>()
</PRE>
<DL>
<DD>
<P>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE>toString
</CODE> in class
<CODE>java.lang.Object
</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setEulerAngles(float, float, float)"><!-- --></A><H3>
setEulerAngles
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>setEulerAngles
</B>(float
yaw,
float
pitch,
float
roll)
</PRE>
<DL>
<DD>Sets the quaternion to the given euler angles.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>yaw
</CODE> - the yaw in degrees
<DD><CODE>pitch
</CODE> - the pitch in degress
<DD><CODE>roll
</CODE> - the roll in degess
<DT><B>Returns:
</B><DD>this quaternion
</DL>
</DD>
</DL>
<HR>
<A NAME="len2()"><!-- --></A><H3>
len2
</H3>
<PRE>
public float
<B>len2
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:
</B><DD>the length of this quaternion without square root
</DL>
</DD>
</DL>
<HR>
<A NAME="nor()"><!-- --></A><H3>
nor
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>nor
</B>()
</PRE>
<DL>
<DD>Normalizes this quaternion to unit length
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:
</B><DD>the quaternion for chaining
</DL>
</DD>
</DL>
<HR>
<A NAME="conjugate()"><!-- --></A><H3>
conjugate
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>conjugate
</B>()
</PRE>
<DL>
<DD>Conjugate the quaternion.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:
</B><DD>This quaternion for chaining
</DL>
</DD>
</DL>
<HR>
<A NAME="transform(com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
transform
</H3>
<PRE>
public void
<B>transform
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> v)
</PRE>
<DL>
<DD>Transforms the given vector using this quaternion
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>v
</CODE> - Vector to transform
</DL>
</DD>
</DL>
<HR>
<A NAME="mul(com.badlogic.gdx.math.Quaternion)"><!-- --></A><H3>
mul
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>mul
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> q)
</PRE>
<DL>
<DD>Multiplies this quaternion with another one
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>q
</CODE> - Quaternion to multiply with
<DT><B>Returns:
</B><DD>This quaternion for chaining
</DL>
</DD>
</DL>
<HR>
<A NAME="mulLeft(com.badlogic.gdx.math.Quaternion)"><!-- --></A><H3>
mulLeft
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>mulLeft
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> q)
</PRE>
<DL>
<DD>Multiplies this quaternion with another one in the form of q * this
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>q
</CODE> - Quaternion to multiply with
<DT><B>Returns:
</B><DD>This quaternion for chaining
</DL>
</DD>
</DL>
<HR>
<A NAME="toMatrix(float[])"><!-- --></A><H3>
toMatrix
</H3>
<PRE>
public void
<B>toMatrix
</B>(float[]
matrix)
</PRE>
<DL>
<DD>Fills a 4x4 matrix with the rotation matrix represented by this quaternion.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>matrix
</CODE> - Matrix to fill
</DL>
</DD>
</DL>
<HR>
<A NAME="idt()"><!-- --></A><H3>
idt
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>idt
</B>()
</PRE>
<DL>
<DD>Sets the quaternion to an identity Quaternion
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:
</B><DD>this quaternion for chaining
</DL>
</DD>
</DL>
<HR>
<A NAME="setFromAxis(com.badlogic.gdx.math.Vector3, float)"><!-- --></A><H3>
setFromAxis
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>setFromAxis
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> axis,
float
angle)
</PRE>
<DL>
<DD>Sets the quaternion components from the given axis and angle around that axis.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>axis
</CODE> - The axis
<DD><CODE>angle
</CODE> - The angle in degrees
<DT><B>Returns:
</B><DD>This quaternion for chaining.
</DL>
</DD>
</DL>
<HR>
<A NAME="setFromAxis(float, float, float, float)"><!-- --></A><H3>
setFromAxis
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>setFromAxis
</B>(float
x,
float
y,
float
z,
float
angle)
</PRE>
<DL>
<DD>Sets the quaternion components from the given axis and angle around that axis.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>x
</CODE> - X direction of the axis
<DD><CODE>y
</CODE> - Y direction of the axis
<DD><CODE>z
</CODE> - Z direction of the axis
<DD><CODE>angle
</CODE> - The angle in degrees
<DT><B>Returns:
</B><DD>This quaternion for chaining.
</DL>
</DD>
</DL>
<HR>
<A NAME="setFromMatrix(com.badlogic.gdx.math.Matrix4)"><!-- --></A><H3>
setFromMatrix
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>setFromMatrix
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Matrix4.html" title="class in com.badlogic.gdx.math">Matrix4
</A> matrix)
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setFromAxes(float, float, float, float, float, float, float, float, float)"><!-- --></A><H3>
setFromAxes
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>setFromAxes
</B>(float
xx,
float
xy,
float
xz,
float
yx,
float
yy,
float
yz,
float
zx,
float
zy,
float
zz)
</PRE>
<DL>
<DD><p>
Sets the Quaternion from the given x-, y- and z-axis which have to be orthonormal.
</p>
<p>
Taken from Bones framework for JPCT, see http://www.aptalkarga.com/bones/ which in turn took it from Graphics Gem code at
ftp://ftp.cis.upenn.edu/pub/graphics/shoemake/quatut.ps.Z.
</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>xx
</CODE> - x-axis x-coordinate
<DD><CODE>xy
</CODE> - x-axis y-coordinate
<DD><CODE>xz
</CODE> - x-axis z-coordinate
<DD><CODE>yx
</CODE> - y-axis x-coordinate
<DD><CODE>yy
</CODE> - y-axis y-coordinate
<DD><CODE>yz
</CODE> - y-axis z-coordinate
<DD><CODE>zx
</CODE> - z-axis x-coordinate
<DD><CODE>zy
</CODE> - z-axis y-coordinate
<DD><CODE>zz
</CODE> - z-axis z-coordinate
</DL>
</DD>
</DL>
<HR>
<A NAME="setFromCross(com.badlogic.gdx.math.Vector3, com.badlogic.gdx.math.Vector3)"><!-- --></A><H3>
setFromCross
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>setFromCross
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> v1,
<A HREF="../../../../com/badlogic/gdx/math/Vector3.html" title="class in com.badlogic.gdx.math">Vector3
</A> v2)
</PRE>
<DL>
<DD>Set this quaternion to the rotation between two vectors.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>v1
</CODE> - The base vector
<DD><CODE>v2
</CODE> - The target vector
<DT><B>Returns:
</B><DD>This quaternion for chaining
</DL>
</DD>
</DL>
<HR>
<A NAME="setFromCross(float, float, float, float, float, float)"><!-- --></A><H3>
setFromCross
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>setFromCross
</B>(float
x1,
float
y1,
float
z1,
float
x2,
float
y2,
float
z2)
</PRE>
<DL>
<DD>Set this quaternion to the rotation between two vectors.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>x1
</CODE> - The base vectors x value
<DD><CODE>y1
</CODE> - The base vectors y value
<DD><CODE>z1
</CODE> - The base vectors z value
<DD><CODE>x2
</CODE> - The target vector x value
<DD><CODE>y2
</CODE> - The target vector y value
<DD><CODE>z2
</CODE> - The target vector z value
<DT><B>Returns:
</B><DD>This quaternion for chaining
</DL>
</DD>
</DL>
<HR>
<A NAME="slerp(com.badlogic.gdx.math.Quaternion, float)"><!-- --></A><H3>
slerp
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>slerp
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> end,
float
alpha)
</PRE>
<DL>
<DD>Spherical linear interpolation between this quaternion and the other quaternion, based on the alpha value in the range
[0,1]. Taken from. Taken from Bones framework for JPCT, see http://www.aptalkarga.com/bones/
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>end
</CODE> - the end quaternion
<DD><CODE>alpha
</CODE> - alpha in the range [0,1]
<DT><B>Returns:
</B><DD>this quaternion for chaining
</DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals
</H3>
<PRE>
public boolean
<B>equals
</B>(java.lang.Object
o)
</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE>equals
</CODE> in class
<CODE>java.lang.Object
</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="dot(com.badlogic.gdx.math.Quaternion)"><!-- --></A><H3>
dot
</H3>
<PRE>
public float
<B>dot
</B>(
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> other)
</PRE>
<DL>
<DD>Dot product between this and the other quaternion.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>other
</CODE> - the other quaternion.
<DT><B>Returns:
</B><DD>this quaternion for chaining.
</DL>
</DD>
</DL>
<HR>
<A NAME="mul(float)"><!-- --></A><H3>
mul
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/math/Quaternion.html" title="class in com.badlogic.gdx.math">Quaternion
</A> <B>mul
</B>(float
scalar)
</PRE>
<DL>
<DD>Multiplies the components of this quaternion with the given scalar.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>scalar
</CODE> - the scalar.
<DT><B>Returns:
</B><DD>this quaternion for chaining.
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package
</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class
</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Quaternion.html"><FONT CLASS="NavBarFont1"><B>Use
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help
</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
libgdx API
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/badlogic/gdx/math/Polygon.html" title="class in com.badlogic.gdx.math"><B>PREV CLASS
</B></A>
<A HREF="../../../../com/badlogic/gdx/math/Rectangle.html" title="class in com.badlogic.gdx.math"><B>NEXT CLASS
</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/badlogic/gdx/math/Quaternion.html" target="_top"><B>FRAMES
</B></A>
<A HREF="Quaternion.html" target="_top"><B>NO FRAMES
</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes
</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:
NESTED
|
<A HREF="#field_summary">FIELD
</A> |
<A HREF="#constructor_summary">CONSTR
</A> |
<A HREF="#method_summary">METHOD
</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:
<A HREF="#field_detail">FIELD
</A> |
<A HREF="#constructor_detail">CONSTR
</A> |
<A HREF="#method_detail">METHOD
</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<div style="font-size:9pt"><i>
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
</i></div>
</BODY>
</HTML>