📄 vector4f.html
字号:
<PRE>public <B>Vector4f</B>(float x, float y, float z, float w)</PRE><DL><DD>Constructs and initializes a Vector4f 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 coordinate</DL></DL><HR><A NAME="Vector4f(float[])"><!-- --></A><H3>Vector4f</H3><PRE>public <B>Vector4f</B>(float[] v)</PRE><DL><DD>Constructs and initializes a Vector4f from the array of length 4.<P><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - the array of length 4 containing xyzw in order</DL></DL><HR><A NAME="Vector4f(javax.vecmath.Vector4f)"><!-- --></A><H3>Vector4f</H3><PRE>public <B>Vector4f</B>(<A HREF="../../javax/vecmath/Vector4f.html" title="class in javax.vecmath">Vector4f</A> v1)</PRE><DL><DD>Constructs and initializes a Vector4f from the specified Vector4f.<P><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - the Vector4f containing the initialization x y z w data</DL></DL><HR><A NAME="Vector4f(javax.vecmath.Vector4d)"><!-- --></A><H3>Vector4f</H3><PRE>public <B>Vector4f</B>(<A HREF="../../javax/vecmath/Vector4d.html" title="class in javax.vecmath">Vector4d</A> v1)</PRE><DL><DD>Constructs and initializes a Vector4f from the specified Vector4d.<P><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - the Vector4d containing the initialization x y z w data</DL></DL><HR><A NAME="Vector4f(javax.vecmath.Tuple4f)"><!-- --></A><H3>Vector4f</H3><PRE>public <B>Vector4f</B>(<A HREF="../../javax/vecmath/Tuple4f.html" title="class in javax.vecmath">Tuple4f</A> t1)</PRE><DL><DD>Constructs and initializes a Vector4f 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="Vector4f(javax.vecmath.Tuple4d)"><!-- --></A><H3>Vector4f</H3><PRE>public <B>Vector4f</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1)</PRE><DL><DD>Constructs and initializes a Vector4f 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="Vector4f(javax.vecmath.Tuple3f)"><!-- --></A><H3>Vector4f</H3><PRE>public <B>Vector4f</B>(<A HREF="../../javax/vecmath/Tuple3f.html" title="class in javax.vecmath">Tuple3f</A> t1)</PRE><DL><DD>Constructs and initializes a Vector4f from the specified Tuple3f. The x,y,z components of this vector are set to the corresponding components of tuple t1. The w component of this vector is set to 0.<P><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the tuple to be copied<DT><B>Since:</B></DT> <DD>vecmath 1.2</DD></DL></DL><HR><A NAME="Vector4f()"><!-- --></A><H3>Vector4f</H3><PRE>public <B>Vector4f</B>()</PRE><DL><DD>Constructs and initializes a Vector4f 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="set(javax.vecmath.Tuple3f)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/Tuple3f.html" title="class in javax.vecmath">Tuple3f</A> t1)</PRE><DL><DD>Sets the x,y,z components of this vector to the corresponding components of tuple t1. The w component of this vector is set to 0.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the tuple to be copied<DT><B>Since:</B></DT> <DD>vecmath 1.2</DD></DL></DD></DL><HR><A NAME="length()"><!-- --></A><H3>length</H3><PRE>public final float <B>length</B>()</PRE><DL><DD>Returns the length of this vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the length of this vector as a float</DL></DD></DL><HR><A NAME="lengthSquared()"><!-- --></A><H3>lengthSquared</H3><PRE>public final float <B>lengthSquared</B>()</PRE><DL><DD>Returns the squared length of this vector<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the squared length of this vector as a float</DL></DD></DL><HR><A NAME="dot(javax.vecmath.Vector4f)"><!-- --></A><H3>dot</H3><PRE>public final float <B>dot</B>(<A HREF="../../javax/vecmath/Vector4f.html" title="class in javax.vecmath">Vector4f</A> v1)</PRE><DL><DD>returns the dot product of this vector and v1<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - the other vector<DT><B>Returns:</B><DD>the dot product of this vector and v1</DL></DD></DL><HR><A NAME="normalize(javax.vecmath.Vector4f)"><!-- --></A><H3>normalize</H3><PRE>public final void <B>normalize</B>(<A HREF="../../javax/vecmath/Vector4f.html" title="class in javax.vecmath">Vector4f</A> v1)</PRE><DL><DD>Sets the value of this vector to the normalization of vector v1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - the un-normalized vector</DL></DD></DL><HR><A NAME="normalize()"><!-- --></A><H3>normalize</H3><PRE>public final void <B>normalize</B>()</PRE><DL><DD>Normalizes this vector in place.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="angle(javax.vecmath.Vector4f)"><!-- --></A><H3>angle</H3><PRE>public final float <B>angle</B>(<A HREF="../../javax/vecmath/Vector4f.html" title="class in javax.vecmath">Vector4f</A> v1)</PRE><DL><DD>Returns the (4-space) angle in radians between this vector and the vector parameter; the return value is constrained to the range [0,PI].<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - the other vector<DT><B>Returns:</B><DD>the angle in radians in the range [0,PI]</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="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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javax/vecmath/Vector4d.html" title="class in javax.vecmath"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?javax/vecmath/Vector4f.html" target="_top"><B>FRAMES</B></A> <A HREF="Vector4f.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="#fields_inherited_from_class_javax.vecmath.Tuple4f">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: FIELD | <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><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -