📄 matrix4f.html
字号:
<A NAME="m21"><!-- --></A><H3>m21</H3><PRE>public float <B>m21</B></PRE><DL><DD>The second element of the third row.<P><DL></DL></DL><HR><A NAME="m22"><!-- --></A><H3>m22</H3><PRE>public float <B>m22</B></PRE><DL><DD>The third element of the third row.<P><DL></DL></DL><HR><A NAME="m23"><!-- --></A><H3>m23</H3><PRE>public float <B>m23</B></PRE><DL><DD>The fourth element of the third row.<P><DL></DL></DL><HR><A NAME="m30"><!-- --></A><H3>m30</H3><PRE>public float <B>m30</B></PRE><DL><DD>The first element of the fourth row.<P><DL></DL></DL><HR><A NAME="m31"><!-- --></A><H3>m31</H3><PRE>public float <B>m31</B></PRE><DL><DD>The second element of the fourth row.<P><DL></DL></DL><HR><A NAME="m32"><!-- --></A><H3>m32</H3><PRE>public float <B>m32</B></PRE><DL><DD>The third element of the fourth row.<P><DL></DL></DL><HR><A NAME="m33"><!-- --></A><H3>m33</H3><PRE>public float <B>m33</B></PRE><DL><DD>The fourth element of the fourth row.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Matrix4f(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)"><!-- --></A><H3>Matrix4f</H3><PRE>public <B>Matrix4f</B>(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)</PRE><DL><DD>Constructs and initializes a Matrix4f from the specified 16 values.<P><DT><B>Parameters:</B><DD><CODE>m00</CODE> - the [0][0] element<DD><CODE>m01</CODE> - the [0][1] element<DD><CODE>m02</CODE> - the [0][2] element<DD><CODE>m03</CODE> - the [0][3] element<DD><CODE>m10</CODE> - the [1][0] element<DD><CODE>m11</CODE> - the [1][1] element<DD><CODE>m12</CODE> - the [1][2] element<DD><CODE>m13</CODE> - the [1][3] element<DD><CODE>m20</CODE> - the [2][0] element<DD><CODE>m21</CODE> - the [2][1] element<DD><CODE>m22</CODE> - the [2][2] element<DD><CODE>m23</CODE> - the [2][3] element<DD><CODE>m30</CODE> - the [3][0] element<DD><CODE>m31</CODE> - the [3][1] element<DD><CODE>m32</CODE> - the [3][2] element<DD><CODE>m33</CODE> - the [3][3] element</DL><HR><A NAME="Matrix4f(float[])"><!-- --></A><H3>Matrix4f</H3><PRE>public <B>Matrix4f</B>(float[] v)</PRE><DL><DD>Constructs and initializes a Matrix4f from the specified 16 element array. this.m00 =v[0], this.m01=v[1], etc.<P><DT><B>Parameters:</B><DD><CODE>v</CODE> - the array of length 16 containing in order</DL><HR><A NAME="Matrix4f(javax.vecmath.Quat4f, javax.vecmath.Vector3f, float)"><!-- --></A><H3>Matrix4f</H3><PRE>public <B>Matrix4f</B>(<A HREF="../../javax/vecmath/Quat4f.html">Quat4f</A> q1, <A HREF="../../javax/vecmath/Vector3f.html">Vector3f</A> t1, float s)</PRE><DL><DD>Constructs and initializes a Matrix4f from the quaternion, translation, and scale values; the scale is applied only to the rotational components of the matrix (upper 3x3) and not to the translational components.<P><DT><B>Parameters:</B><DD><CODE>q1</CODE> - the quaternion value representing the rotational component<DD><CODE>t1</CODE> - the translational component of the matrix<DD><CODE>s</CODE> - the scale value applied to the rotational components</DL><HR><A NAME="Matrix4f(javax.vecmath.Matrix4d)"><!-- --></A><H3>Matrix4f</H3><PRE>public <B>Matrix4f</B>(<A HREF="../../javax/vecmath/Matrix4d.html">Matrix4d</A> m1)</PRE><DL><DD>Constructs a new matrix with the same values as the Matrix4d parameter.<P><DT><B>Parameters:</B><DD><CODE>m1</CODE> - the source matrix</DL><HR><A NAME="Matrix4f(javax.vecmath.Matrix4f)"><!-- --></A><H3>Matrix4f</H3><PRE>public <B>Matrix4f</B>(<A HREF="../../javax/vecmath/Matrix4f.html">Matrix4f</A> m1)</PRE><DL><DD>Constructs a new matrix with the same values as the Matrix4f parameter.<P><DT><B>Parameters:</B><DD><CODE>m1</CODE> - the source matrix</DL><HR><A NAME="Matrix4f(javax.vecmath.Matrix3f, javax.vecmath.Vector3f, float)"><!-- --></A><H3>Matrix4f</H3><PRE>public <B>Matrix4f</B>(<A HREF="../../javax/vecmath/Matrix3f.html">Matrix3f</A> m1, <A HREF="../../javax/vecmath/Vector3f.html">Vector3f</A> t1, float s)</PRE><DL><DD>Constructs and initializes a Matrix4f from the rotation matrix, translation, and scale values; the scale is applied only to the rotational components of the matrix (upper 3x3) and not to the translational components of the matrix.<P><DT><B>Parameters:</B><DD><CODE>m1</CODE> - the rotation matrix representing the rotational components<DD><CODE>t1</CODE> - the translational components of the matrix<DD><CODE>s</CODE> - the scale value applied to the rotational components</DL><HR><A NAME="Matrix4f()"><!-- --></A><H3>Matrix4f</H3><PRE>public <B>Matrix4f</B>()</PRE><DL><DD>Constructs and initializes a Matrix4f to all zeros.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a string that contains the values of this Matrix4f.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the String representation</DL></DD></DL><HR><A NAME="setIdentity()"><!-- --></A><H3>setIdentity</H3><PRE>public final void <B>setIdentity</B>()</PRE><DL><DD>Sets this Matrix4f to identity.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setElement(int, int, float)"><!-- --></A><H3>setElement</H3><PRE>public final void <B>setElement</B>(int row, int column, float value)</PRE><DL><DD>Sets the specified element of this matrix4f to the value provided.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - the row number to be modified (zero indexed)<DD><CODE>column</CODE> - the column number to be modified (zero indexed)<DD><CODE>value</CODE> - the new value</DL></DD></DL><HR><A NAME="getElement(int, int)"><!-- --></A><H3>getElement</H3><PRE>public final float <B>getElement</B>(int row, int column)</PRE><DL><DD>Retrieves the value at the specified row and column of this matrix.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - the row number to be retrieved (zero indexed)<DD><CODE>column</CODE> - the column number to be retrieved (zero indexed)<DT><B>Returns:</B><DD>the value at the indexed element</DL></DD></DL><HR><A NAME="getRow(int, javax.vecmath.Vector4f)"><!-- --></A><H3>getRow</H3><PRE>public final void <B>getRow</B>(int row, <A HREF="../../javax/vecmath/Vector4f.html">Vector4f</A> v)</PRE><DL><DD>Copies the matrix values in the specified row into the vector parameter.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - the matrix row<DD><CODE>v</CODE> - the vector into which the matrix row values will be copied</DL></DD></DL><HR><A NAME="getRow(int, float[])"><!-- --></A><H3>getRow</H3><PRE>public final void <B>getRow</B>(int row, float[] v)</PRE><DL><DD>Copies the matrix values in the specified row into the array parameter.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - the matrix row<DD><CODE>v</CODE> - the array into which the matrix row values will be copied</DL></DD></DL><HR><A NAME="getColumn(int, javax.vecmath.Vector4f)"><!-- --></A><H3>getColumn</H3><PRE>public final void <B>getColumn</B>(int column,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -