📄 point3d.html
字号:
<B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="kNativeSize"><!-- --></A><H3>kNativeSize</H3><PRE>public static final int <B>kNativeSize</B></PRE><DL><DD>This is the size (the number of bytes) that are required for this class</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="Point3D()"><!-- --></A><H3>Point3D</H3><PRE>public <B>Point3D</B>()</PRE><DL><DD>Creates a Point3D object containing no data.</DL><HR><A NAME="Point3D(float, float, float)"><!-- --></A><H3>Point3D</H3><PRE>public <B>Point3D</B>(float x, float y, float z)</PRE><DL><DD>Creates a Point3D object containing with given data.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - The final x coordinate.<DD><CODE>y</CODE> - The final y coordinate.<DD><CODE>z</CODE> - The final z coordinate.</DL></DD></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="getEndianDescriptor()"><!-- --></A><H3>getEndianDescriptor</H3><PRE>public static final <A HREF="../../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptor</B>()</PRE><DL><DD>Returns the EndianDescriptor for this class.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndianDescriptor</DL></DD></DL><HR><A NAME="getX()"><!-- --></A><H3>getX</H3><PRE>public float <B>getX</B>()</PRE><DL><DD>returns the position in the X direction<DD><DL></DL></DD></DL><HR><A NAME="getY()"><!-- --></A><H3>getY</H3><PRE>public float <B>getY</B>()</PRE><DL><DD>returns the position in the Y direction<DD><DL></DL></DD></DL><HR><A NAME="getZ()"><!-- --></A><H3>getZ</H3><PRE>public float <B>getZ</B>()</PRE><DL><DD>returns the position in the Z direction<DD><DL></DL></DD></DL><HR><A NAME="setX(float)"><!-- --></A><H3>setX</H3><PRE>public void <B>setX</B>(float x)</PRE><DL><DD>sets the position in the X direction<DD><DL></DL></DD></DL><HR><A NAME="setY(float)"><!-- --></A><H3>setY</H3><PRE>public void <B>setY</B>(float y)</PRE><DL><DD>sets the position in the Y direction<DD><DL></DL></DD></DL><HR><A NAME="setZ(float)"><!-- --></A><H3>setZ</H3><PRE>public void <B>setZ</B>(float z)</PRE><DL><DD>sets the position in the Z direction<DD><DL></DL></DD></DL><HR><A NAME="subtract(quicktime.qd3d.math.Point3D)"><!-- --></A><H3>subtract</H3><PRE>public <A HREF="../../../quicktime/qd3d/math/Vector3D.html">Vector3D</A> <B>subtract</B>(<A HREF="../../../quicktime/qd3d/math/Point3D.html">Point3D</A> p2)</PRE><DL><DD>Returns a three-dimensional vector that is the result of subtracting the point p2 from p1. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.a.htm#pgfId=3295">QuickDraw3D::Q3Point3D_Subtract</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p2</CODE> - A three-dimensional point<DT><B>Returns:</B><DD>a three-dimensional vector that is the result of subtracting the point p2 from p1.</DL></DD></DL><HR><A NAME="distance(quicktime.qd3d.math.Point3D)"><!-- --></A><H3>distance</H3><PRE>public float <B>distance</B>(<A HREF="../../../quicktime/qd3d/math/Point3D.html">Point3D</A> p2)</PRE><DL><DD>Returns the absolute value of the distance between points this and p2. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.b.htm#pgfId=3328">QuickDraw3D::Q3Point3D_Distance</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p2</CODE> - A three-dimensional point<DT><B>Returns:</B><DD>the distance</DL></DD></DL><HR><A NAME="distanceSquared(quicktime.qd3d.math.Point3D)"><!-- --></A><H3>distanceSquared</H3><PRE>public float <B>distanceSquared</B>(<A HREF="../../../quicktime/qd3d/math/Point3D.html">Point3D</A> p2)</PRE><DL><DD>Returns the squared value of the distance between points this and p2. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.b.htm#pgfId=3366">QuickDraw3D::Q3Point3D_DistanceSquared</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p2</CODE> - A three-dimensional point<DT><B>Returns:</B><DD>the distance</DL></DD></DL><HR><A NAME="rRatio(quicktime.qd3d.math.Point3D, float, float)"><!-- --></A><H3>rRatio</H3><PRE>public <A HREF="../../../quicktime/qd3d/math/Point3D.html">Point3D</A> <B>rRatio</B>(<A HREF="../../../quicktime/qd3d/math/Point3D.html">Point3D</A> p2, float r1, float r2)</PRE><DL><DD>Returns the three-dimensional point that lies on the line segment between the points p1 and p2 and that is at a distance from the first point determined by the ratio r1/(r1 + r2). <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.c.htm#pgfId=3416">QuickDraw3D::Q3Point3D_RRatio</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p2</CODE> - A three-dimensional point.<DD><CODE>r1</CODE> - A floating-point number.<DD><CODE>r2</CODE> - A floating-point number.<DT><B>Returns:</B><DD>a 3DPoint</DL></DD></DL><HR><A NAME="add(quicktime.qd3d.math.Vector3D)"><!-- --></A><H3>add</H3><PRE>public <A HREF="../../../quicktime/qd3d/math/Point3D.html">Point3D</A> <B>add</B>(<A HREF="../../../quicktime/qd3d/math/Vector3D.html">Vector3D</A> vector3D)</PRE><DL><DD>Returns the three-dimensional point that is the result of adding the vector vector3D to this. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.d.htm#pgfId=3459">QuickDraw3D::Q3Point3D_Vector3D_Add</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vector3D</CODE> - A three-dimensional vector.<DT><B>Returns:</B><DD>a three-dimensional point</DL></DD></DL><HR><A NAME="subtract(quicktime.qd3d.math.Vector3D)"><!-- --></A><H3>subtract</H3><PRE>public <A HREF="../../../quicktime/qd3d/math/Point3D.html">Point3D</A> <B>subtract</B>(<A HREF="../../../quicktime/qd3d/math/Vector3D.html">Vector3D</A> vector3D)</PRE><DL><DD>Returns the three-dimensional point that is the result of subtracting the vector vector3D from this. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.d.htm#pgfId=3485">QuickDraw3D::Q3Point3D_Vector3D_Subtract</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vector3D</CODE> - A three-dimensional vector.<DT><B>Returns:</B><DD>a three-dimensional point</DL></DD></DL><HR><A NAME="cross(quicktime.qd3d.math.Point3D, quicktime.qd3d.math.Point3D)"><!-- --></A><H3>cross</H3><PRE>public <A HREF="../../../quicktime/qd3d/math/Vector3D.html">Vector3D</A> <B>cross</B>(<A HREF="../../../quicktime/qd3d/math/Point3D.html">Point3D</A> point2, <A HREF="../../../quicktime/qd3d/math/Point3D.html">Point3D</A> point3)</PRE><DL><DD>Returns the cross product of the two vectors determined by subtracting point2 from this and point3 from this <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.12.htm#pgfId=3617">QuickDraw3D::Q3Point3D_CrossProductTri</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>point2</CODE> - A three-dimensional point.<DD><CODE>point3</CODE> - A three-dimensional point.<DT><B>Returns:</B><DD>a vector</DL></DD></DL><HR><A NAME="transformQuaternion(quicktime.qd3d.math.Quaternion)"><!-- --></A><H3>transformQuaternion</H3><PRE>public <A HREF="../../../quicktime/qd3d/math/Point3D.html">Point3D</A> <B>transformQuaternion</B>(<A HREF="../../../quicktime/qd3d/math/Quaternion.html">Quaternion</A> quaternion)</PRE><DL><DD>Return a three-dimensional point that is the result of transforming the vector specified by the vector parameter using the quaternion specified by the quaternion parameter. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.1b.htm#pgfId=4271">QuickDraw3D::Q3Point3D_TransformQuaternion</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>quaternion</CODE> - A quaternion.<DT><B>Returns:</B><DD>a three-dimensional point</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Returns a copy of this object.<DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a string representation of this object.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../quicktime/util/QTByteObject.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../quicktime/util/QTByteObject.html">QTByteObject</A></CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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/Point3D.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../quicktime/qd3d/math/Point2D.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/qd3d/math/Quaternion.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Point3D.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -