📄 quat4d.html
字号:
the value into this quaternion.</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="../../javax/vecmath/Quat4d.html#normalize()">normalize</A></B>()</CODE><BR> Normalizes the value of this quaternion in place.</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="../../javax/vecmath/Quat4d.html#normalize(javax.vecmath.Quat4d)">normalize</A></B>(<A HREF="../../javax/vecmath/Quat4d.html" title="class in javax.vecmath">Quat4d</A> q1)</CODE><BR> Sets the value of this quaternion to the normalized value of quaternion q1.</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="../../javax/vecmath/Quat4d.html#set(javax.vecmath.AxisAngle4d)">set</A></B>(<A HREF="../../javax/vecmath/AxisAngle4d.html" title="class in javax.vecmath">AxisAngle4d</A> a)</CODE><BR> Sets the value of this quaternion to the equivalent rotation of the AxisAngle argument.</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="../../javax/vecmath/Quat4d.html#set(javax.vecmath.AxisAngle4f)">set</A></B>(<A HREF="../../javax/vecmath/AxisAngle4f.html" title="class in javax.vecmath">AxisAngle4f</A> a)</CODE><BR> Sets the value of this quaternion to the equivalent rotation of the AxisAngle argument.</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="../../javax/vecmath/Quat4d.html#set(javax.vecmath.Matrix3d)">set</A></B>(<A HREF="../../javax/vecmath/Matrix3d.html" title="class in javax.vecmath">Matrix3d</A> m1)</CODE><BR> Sets the value of this quaternion to the rotational component of the passed matrix.</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="../../javax/vecmath/Quat4d.html#set(javax.vecmath.Matrix3f)">set</A></B>(<A HREF="../../javax/vecmath/Matrix3f.html" title="class in javax.vecmath">Matrix3f</A> m1)</CODE><BR> Sets the value of this quaternion to the rotational component of the passed matrix.</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="../../javax/vecmath/Quat4d.html#set(javax.vecmath.Matrix4d)">set</A></B>(<A HREF="../../javax/vecmath/Matrix4d.html" title="class in javax.vecmath">Matrix4d</A> m1)</CODE><BR> Sets the value of this quaternion to the rotational component of the passed matrix.</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="../../javax/vecmath/Quat4d.html#set(javax.vecmath.Matrix4f)">set</A></B>(<A HREF="../../javax/vecmath/Matrix4f.html" title="class in javax.vecmath">Matrix4f</A> m1)</CODE><BR> Sets the value of this quaternion to the rotational component of the passed matrix.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.vecmath.Tuple4d"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.vecmath.<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/vecmath/Tuple4d.html#absolute()">absolute</A>, <A HREF="../../javax/vecmath/Tuple4d.html#absolute(javax.vecmath.Tuple4d)">absolute</A>, <A HREF="../../javax/vecmath/Tuple4d.html#add(javax.vecmath.Tuple4d)">add</A>, <A HREF="../../javax/vecmath/Tuple4d.html#add(javax.vecmath.Tuple4d, javax.vecmath.Tuple4d)">add</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clamp(double, double)">clamp</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clamp(double, double, javax.vecmath.Tuple4d)">clamp</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clamp(float, float)">clamp</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clamp(float, float, javax.vecmath.Tuple4d)">clamp</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clampMax(double)">clampMax</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clampMax(double, javax.vecmath.Tuple4d)">clampMax</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clampMax(float)">clampMax</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clampMax(float, javax.vecmath.Tuple4d)">clampMax</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clampMin(double)">clampMin</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clampMin(double, javax.vecmath.Tuple4d)">clampMin</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clampMin(float)">clampMin</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clampMin(float, javax.vecmath.Tuple4d)">clampMin</A>, <A HREF="../../javax/vecmath/Tuple4d.html#clone()">clone</A>, <A HREF="../../javax/vecmath/Tuple4d.html#epsilonEquals(javax.vecmath.Tuple4d, double)">epsilonEquals</A>, <A HREF="../../javax/vecmath/Tuple4d.html#equals(java.lang.Object)">equals</A>, <A HREF="../../javax/vecmath/Tuple4d.html#equals(javax.vecmath.Tuple4d)">equals</A>, <A HREF="../../javax/vecmath/Tuple4d.html#get(double[])">get</A>, <A HREF="../../javax/vecmath/Tuple4d.html#get(javax.vecmath.Tuple4d)">get</A>, <A HREF="../../javax/vecmath/Tuple4d.html#getW()">getW</A>, <A HREF="../../javax/vecmath/Tuple4d.html#getX()">getX</A>, <A HREF="../../javax/vecmath/Tuple4d.html#getY()">getY</A>, <A HREF="../../javax/vecmath/Tuple4d.html#getZ()">getZ</A>, <A HREF="../../javax/vecmath/Tuple4d.html#hashCode()">hashCode</A>, <A HREF="../../javax/vecmath/Tuple4d.html#interpolate(javax.vecmath.Tuple4d, double)">interpolate</A>, <A HREF="../../javax/vecmath/Tuple4d.html#interpolate(javax.vecmath.Tuple4d, float)">interpolate</A>, <A HREF="../../javax/vecmath/Tuple4d.html#interpolate(javax.vecmath.Tuple4d, javax.vecmath.Tuple4d, double)">interpolate</A>, <A HREF="../../javax/vecmath/Tuple4d.html#interpolate(javax.vecmath.Tuple4d, javax.vecmath.Tuple4d, float)">interpolate</A>, <A HREF="../../javax/vecmath/Tuple4d.html#negate()">negate</A>, <A HREF="../../javax/vecmath/Tuple4d.html#negate(javax.vecmath.Tuple4d)">negate</A>, <A HREF="../../javax/vecmath/Tuple4d.html#scale(double)">scale</A>, <A HREF="../../javax/vecmath/Tuple4d.html#scale(double, javax.vecmath.Tuple4d)">scale</A>, <A HREF="../../javax/vecmath/Tuple4d.html#scaleAdd(double, javax.vecmath.Tuple4d)">scaleAdd</A>, <A HREF="../../javax/vecmath/Tuple4d.html#scaleAdd(double, javax.vecmath.Tuple4d, javax.vecmath.Tuple4d)">scaleAdd</A>, <A HREF="../../javax/vecmath/Tuple4d.html#scaleAdd(float, javax.vecmath.Tuple4d)">scaleAdd</A>, <A HREF="../../javax/vecmath/Tuple4d.html#set(double[])">set</A>, <A HREF="../../javax/vecmath/Tuple4d.html#set(double, double, double, double)">set</A>, <A HREF="../../javax/vecmath/Tuple4d.html#set(javax.vecmath.Tuple4d)">set</A>, <A HREF="../../javax/vecmath/Tuple4d.html#set(javax.vecmath.Tuple4f)">set</A>, <A HREF="../../javax/vecmath/Tuple4d.html#setW(double)">setW</A>, <A HREF="../../javax/vecmath/Tuple4d.html#setX(double)">setX</A>, <A HREF="../../javax/vecmath/Tuple4d.html#setY(double)">setY</A>, <A HREF="../../javax/vecmath/Tuple4d.html#setZ(double)">setZ</A>, <A HREF="../../javax/vecmath/Tuple4d.html#sub(javax.vecmath.Tuple4d)">sub</A>, <A HREF="../../javax/vecmath/Tuple4d.html#sub(javax.vecmath.Tuple4d, javax.vecmath.Tuple4d)">sub</A>, <A HREF="../../javax/vecmath/Tuple4d.html#toString()">toString</A></CODE></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>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ========= 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="Quat4d(double, double, double, double)"><!-- --></A><H3>Quat4d</H3><PRE>public <B>Quat4d</B>(double x, double y, double z, double w)</PRE><DL><DD>Constructs and initializes a Quat4d from the specified xyzw coordinates.<P><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate<DD><CODE>y</CODE> - the y coordinate<DD><CODE>z</CODE> - the z coordinate<DD><CODE>w</CODE> - the w scalar component</DL></DL><HR><A NAME="Quat4d(double[])"><!-- --></A><H3>Quat4d</H3><PRE>public <B>Quat4d</B>(double[] q)</PRE><DL><DD>Constructs and initializes a Quat4d from the array of length 4.<P><DL><DT><B>Parameters:</B><DD><CODE>q</CODE> - the array of length 4 containing xyzw in order</DL></DL><HR><A NAME="Quat4d(javax.vecmath.Quat4d)"><!-- --></A><H3>Quat4d</H3><PRE>public <B>Quat4d</B>(<A HREF="../../javax/vecmath/Quat4d.html" title="class in javax.vecmath">Quat4d</A> q1)</PRE><DL><DD>Constructs and initializes a Quat4d from the specified Quat4d.<P><DL><DT><B>Parameters:</B><DD><CODE>q1</CODE> - the Quat4d containing the initialization x y z w data</DL></DL><HR><A NAME="Quat4d(javax.vecmath.Quat4f)"><!-- --></A><H3>Quat4d</H3><PRE>public <B>Quat4d</B>(<A HREF="../../javax/vecmath/Quat4f.html" title="class in javax.vecmath">Quat4f</A> q1)</PRE><DL><DD>Constructs and initializes a Quat4d from the specified Quat4f.<P><DL><DT><B>Parameters:</B><DD><CODE>q1</CODE> - the Quat4f containing the initialization x y z w data</DL></DL><HR><A NAME="Quat4d(javax.vecmath.Tuple4f)"><!-- --></A><H3>Quat4d</H3><PRE>public <B>Quat4d</B>(<A HREF="../../javax/vecmath/Tuple4f.html" title="class in javax.vecmath">Tuple4f</A> t1)</PRE><DL><DD>Constructs and initializes a Quat4d from the specified Tuple4f.<P><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the Tuple4f containing the initialization x y z w data</DL></DL><HR><A NAME="Quat4d(javax.vecmath.Tuple4d)"><!-- --></A><H3>Quat4d</H3><PRE>public <B>Quat4d</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1)</PRE><DL><DD>Constructs and initializes a Quat4d from the specified Tuple4d.<P><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the Tuple4d containing the initialization x y z w data</DL></DL><HR><A NAME="Quat4d()"><!-- --></A><H3>Quat4d</H3><PRE>public <B>Quat4d</B>()</PRE><DL><DD>Constructs and initializes a Quat4d to (0,0,0,0).<P></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="conjugate(javax.vecmath.Quat4d)"><!-- --></A><H3>conjugate</H3><PRE>public final void <B>conjugate</B>(<A HREF="../../javax/vecmath/Quat4d.html" title="class in javax.vecmath">Quat4d</A> q1)</PRE><DL><DD>Sets the value of this quaternion to the conjugate of quaternion q1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>q1</CODE> - the source vector</DL></DD></DL><HR><A NAME="conjugate()"><!-- --></A><H3>conjugate</H3><PRE>public final void <B>conjugate</B>()</PRE><DL><DD>Negate the value of of each of this quaternion's x,y,z coordinates in place.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mul(javax.vecmath.Quat4d, javax.vecmath.Quat4d)"><!-- --></A><H3>mul</H3><PRE>public final void <B>mul</B>(<A HREF="../../javax/vecmath/Quat4d.html" title="class in javax.vecmath">Quat4d</A> q1, <A HREF="../../javax/vecmath/Quat4d.html" title="class in javax.vecmath">Quat4d</A> q2)</PRE><DL><DD>Sets the value of this quaternion to the quaternion product of quaternions q1 and q2 (this = q1 * q2). Note that this is safe for aliasing (e.g. this can be q1 or q2).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>q1</CODE> - the first quaternion<DD><CODE>q2</CODE> - the second quaternion</DL></DD></DL><HR><A NAME="mul(javax.vecmath.Quat4d)"><!-- --></A><H3>mul</H3><PRE>public final void <B>mul</B>(<A HREF="../../javax/vecmath/Quat4d.html" title="class in javax.vecmath">Quat4d</A> q1)</PRE><DL><DD>Sets the value of this quaternion to the quaternion product of itself and q1 (this = this * q1).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>q1</CODE> - the other quaternion</DL></DD></DL><HR><A NAME="mulInverse(javax.vecmath.Quat4d, javax.vecmath.Quat4d)"><!-- --></A><H3>mulInverse</H3><PRE>public final void <B>mulInverse</B>(<A HREF="../../javax/vecmath/Quat4d.html" title="class in javax.vecmath">Quat4d</A> q1, <A HREF="../../javax/vecmath/Quat4d.html" title="class in javax.vecmath">Quat4d</A> q2)</PRE><DL><DD>Multiplies quaternion q1 by the inverse of quaternion q2 and places the value into this quaternion. The value of both argument quaternions is preservered (this = q1 * q2^-1).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>q1</CODE> - the first quaternion<DD><CODE>q2</CODE> - the second quaternion</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -