📄 point2d.html
字号:
<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>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="subtract(quicktime.qd.QDPoint, quicktime.qd.QDPoint)"><!-- --></A><H3>subtract</H3><PRE>public static <A HREF="../../../quicktime/qd3d/math/Vector2D.html">Vector2D</A> <B>subtract</B>(<A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> p1, <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> p2)</PRE><DL><DD>Returns a two-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=3278">QuickDraw3D::Q3Point2D_Subtract</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p1</CODE> - A two-dimensional point<DD><CODE>p2</CODE> - A two-dimensional point<DT><B>Returns:</B><DD>a Vector2D object</DL></DD></DL><HR><A NAME="distance(quicktime.qd.QDPoint, quicktime.qd.QDPoint)"><!-- --></A><H3>distance</H3><PRE>public static float <B>distance</B>(<A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> p1, <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> p2)</PRE><DL><DD>Returns the absolute value of the distance between points p1 and p2. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.b.htm#pgfId=3313">QuickDraw3D::Q3Point2D_Distance</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p1</CODE> - A two-dimensional point<DD><CODE>p2</CODE> - A two-dimensional point<DT><B>Returns:</B><DD>the distance</DL></DD></DL><HR><A NAME="distanceSquared(quicktime.qd.QDPoint, quicktime.qd.QDPoint)"><!-- --></A><H3>distanceSquared</H3><PRE>public static float <B>distanceSquared</B>(<A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> p1, <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> p2)</PRE><DL><DD>Returns the square value of the distance between points p1 and p2. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.b.htm#pgfId=3351">QuickDraw3D::Q3Point2D_DistanceSquared</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p1</CODE> - A two-dimensional point<DD><CODE>p2</CODE> - A two-dimensional point<DT><B>Returns:</B><DD>the distance</DL></DD></DL><HR><A NAME="rRatio(quicktime.qd.QDPoint, quicktime.qd.QDPoint, float, float)"><!-- --></A><H3>rRatio</H3><PRE>public static <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> <B>rRatio</B>(<A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> p1, <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> p2, float r1, float r2)</PRE><DL><DD>Returns the two-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=3396">QuickDraw3D::Q3Point2D_RRatio</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p2</CODE> - A two-dimensional point.<DD><CODE>r1</CODE> - A floating-point number.<DD><CODE>r2</CODE> - A floating-point number.<DT><B>Returns:</B><DD>a QDPoint</DL></DD></DL><HR><A NAME="add(quicktime.qd.QDPoint, quicktime.qd3d.math.Vector2D)"><!-- --></A><H3>add</H3><PRE>public static <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> <B>add</B>(<A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> point2D, <A HREF="../../../quicktime/qd3d/math/Vector2D.html">Vector2D</A> v)</PRE><DL><DD>Returns the result of adding a two-dimensional vector to a two-dimensional point. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.d.htm#pgfId=3442">QuickDraw3D::Q3Point2D_Vector2D_Add</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>point2D</CODE> - A two-dimensional point.<DD><CODE>v</CODE> - a two-dimensional vector<DT><B>Returns:</B><DD>a point that is the result of the add.</DL></DD></DL><HR><A NAME="subtract(quicktime.qd.QDPoint, quicktime.qd3d.math.Vector2D)"><!-- --></A><H3>subtract</H3><PRE>public static <A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> <B>subtract</B>(<A HREF="../../../quicktime/qd/QDPoint.html">QDPoint</A> point2D, <A HREF="../../../quicktime/qd3d/math/Vector2D.html">Vector2D</A> v)</PRE><DL><DD>Returns the result of subtracting a two-dimensional vector from a two-dimensional point. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3dmathfunc.d.htm#pgfId=3468">QuickDraw3D::Q3Point2D_Vector2D_Subtract</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>point2D</CODE> - A two-dimensional point.<DD><CODE>v</CODE> - a two-dimensional vector<DT><B>Returns:</B><DD>a point that is the result of the add.</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/Point2D.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/Matrix4x4.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/qd3d/math/Point3D.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="Point2D.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -