📄 matrix4f.html
字号:
<CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/vecmath/Matrix4f.html#setRotation(javax.vecmath.Quat4f)">setRotation</A></B>(<A HREF="../../javax/vecmath/Quat4f.html">Quat4f</A> q1)</CODE><BR> Sets the rotational component (upper 3x3) of this matrix to the matrix equivalent values of the quaternion argument; the other elements of this matrix are unchanged; a singular value decomposition is performed on this object's upper 3x3 matrix to factor out the scale, then this object's upper 3x3 matrix components are replaced by the matrix equivalent of the quaternion, and then the scale is reapplied to the rotational components.</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/Matrix4f.html#setRotationScale(javax.vecmath.Matrix3f)">setRotationScale</A></B>(<A HREF="../../javax/vecmath/Matrix3f.html">Matrix3f</A> m1)</CODE><BR> Replaces the upper 3x3 matrix values of this matrix with the values in the matrix m1.</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/Matrix4f.html#setRow(int, float[])">setRow</A></B>(int row, float[] v)</CODE><BR> Sets the specified row of this matrix4f to the four values provided in the passed array.</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/Matrix4f.html#setRow(int, float, float, float, float)">setRow</A></B>(int row, float x, float y, float z, float w)</CODE><BR> Sets the specified row of this matrix4f to the four values provided.</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/Matrix4f.html#setRow(int, javax.vecmath.Vector4f)">setRow</A></B>(int row, <A HREF="../../javax/vecmath/Vector4f.html">Vector4f</A> v)</CODE><BR> Sets the specified row of this matrix4f to the Vector provided.</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/Matrix4f.html#setScale(float)">setScale</A></B>(float scale)</CODE><BR> Sets the scale component of the current matrix by factoring out the current scale (by doing an SVD) from the rotational component and multiplying by the new scale.</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/Matrix4f.html#setTranslation(javax.vecmath.Vector3f)">setTranslation</A></B>(<A HREF="../../javax/vecmath/Vector3f.html">Vector3f</A> trans)</CODE><BR> Modifies the translational components of this matrix to the values of the Vector3f argument; the other values of this matrix are not modified.</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/Matrix4f.html#setZero()">setZero</A></B>()</CODE><BR> Sets this matrix to all zeros.</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/Matrix4f.html#sub(javax.vecmath.Matrix4f)">sub</A></B>(<A HREF="../../javax/vecmath/Matrix4f.html">Matrix4f</A> m1)</CODE><BR> Sets this matrix to the matrix difference of itself and matrix m1 (this = this - m1).</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/Matrix4f.html#sub(javax.vecmath.Matrix4f, javax.vecmath.Matrix4f)">sub</A></B>(<A HREF="../../javax/vecmath/Matrix4f.html">Matrix4f</A> m1, <A HREF="../../javax/vecmath/Matrix4f.html">Matrix4f</A> m2)</CODE><BR> Performs an element-by-element subtraction of matrix m2 from matrix m1 and places the result into matrix this (this = m2 - m1).</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="../../javax/vecmath/Matrix4f.html#toString()">toString</A></B>()</CODE><BR> Returns a string that contains the values of this Matrix4f.</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/Matrix4f.html#transform(javax.vecmath.Point3f)">transform</A></B>(<A HREF="../../javax/vecmath/Point3f.html">Point3f</A> point)</CODE><BR> Transforms the point parameter with this Matrix4f and places the result back into point.</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/Matrix4f.html#transform(javax.vecmath.Point3f, javax.vecmath.Point3f)">transform</A></B>(<A HREF="../../javax/vecmath/Point3f.html">Point3f</A> point, <A HREF="../../javax/vecmath/Point3f.html">Point3f</A> pointOut)</CODE><BR> Transforms the point parameter with this Matrix4f and places the result into pointOut.</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/Matrix4f.html#transform(javax.vecmath.Tuple4f)">transform</A></B>(<A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> vec)</CODE><BR> Transform the vector vec using this Transform and place the result back into vec.</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/Matrix4f.html#transform(javax.vecmath.Tuple4f, javax.vecmath.Tuple4f)">transform</A></B>(<A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> vec, <A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> vecOut)</CODE><BR> Transform the vector vec using this Matrix4f and place the result into vecOut.</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/Matrix4f.html#transform(javax.vecmath.Vector3f)">transform</A></B>(<A HREF="../../javax/vecmath/Vector3f.html">Vector3f</A> normal)</CODE><BR> Transforms the normal parameter by this transform and places the value back into normal.</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/Matrix4f.html#transform(javax.vecmath.Vector3f, javax.vecmath.Vector3f)">transform</A></B>(<A HREF="../../javax/vecmath/Vector3f.html">Vector3f</A> normal, <A HREF="../../javax/vecmath/Vector3f.html">Vector3f</A> normalOut)</CODE><BR> Transforms the normal parameter by this Matrix4f and places the value into normalOut.</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/Matrix4f.html#transpose()">transpose</A></B>()</CODE><BR> Sets the value of this matrix to its transpose 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/Matrix4f.html#transpose(javax.vecmath.Matrix4f)">transpose</A></B>(<A HREF="../../javax/vecmath/Matrix4f.html">Matrix4f</A> m1)</CODE><BR> Sets the value of this matrix to the transpose of the argument matrix.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="m00"><!-- --></A><H3>m00</H3><PRE>public float <B>m00</B></PRE><DL><DD>The first element of the first row.<P><DL></DL></DL><HR><A NAME="m01"><!-- --></A><H3>m01</H3><PRE>public float <B>m01</B></PRE><DL><DD>The second element of the first row.<P><DL></DL></DL><HR><A NAME="m02"><!-- --></A><H3>m02</H3><PRE>public float <B>m02</B></PRE><DL><DD>The third element of the first row.<P><DL></DL></DL><HR><A NAME="m03"><!-- --></A><H3>m03</H3><PRE>public float <B>m03</B></PRE><DL><DD>The fourth element of the first row.<P><DL></DL></DL><HR><A NAME="m10"><!-- --></A><H3>m10</H3><PRE>public float <B>m10</B></PRE><DL><DD>The first element of the second row.<P><DL></DL></DL><HR><A NAME="m11"><!-- --></A><H3>m11</H3><PRE>public float <B>m11</B></PRE><DL><DD>The second element of the second row.<P><DL></DL></DL><HR><A NAME="m12"><!-- --></A><H3>m12</H3><PRE>public float <B>m12</B></PRE><DL><DD>The third element of the second row.<P><DL></DL></DL><HR><A NAME="m13"><!-- --></A><H3>m13</H3><PRE>public float <B>m13</B></PRE><DL><DD>The fourth element of the second row.<P><DL></DL></DL><HR><A NAME="m20"><!-- --></A><H3>m20</H3><PRE>public float <B>m20</B></PRE><DL><DD>The first element of the third row.<P><DL></DL></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -