cubiccurve2d.html

来自「API資料大全」· HTML 代码 · 共 1,359 行 · 第 1/4 页

HTML
1,359
字号
 shape.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#getPathIterator(java.awt.geom.AffineTransform, double)">getPathIterator</A></B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A>&nbsp;at,                double&nbsp;flatness)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an iteration object that defines the boundary of the flattened shape.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#getX1()">getX1</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the X coordinate of the start point in double precision.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#getX2()">getX2</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the X coordinate of the end point in double precision.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#getY1()">getY1</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Y coordinate of the start point in double precision.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#getY2()">getY2</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Y coordinate of the end point in double precision.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#intersects(double, double, double, double)">intersects</A></B>(double&nbsp;x,           double&nbsp;y,           double&nbsp;w,           double&nbsp;h)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests if the shape intersects the interior of a specified set of rectangular coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#intersects(java.awt.geom.Rectangle2D)">intersects</A></B>(<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A>&nbsp;r)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests if the shape intersects the interior of a specified <code>Rectangle2D</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#setCurve(java.awt.geom.CubicCurve2D)">setCurve</A></B>(<A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the location of the endpoints and controlpoints of this curve to the same as those in the specified <code>CubicCurve2D</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#setCurve(double[], int)">setCurve</A></B>(double[]&nbsp;coords,         int&nbsp;offset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the location of the endpoints and controlpoints of this curve to the double coordinates at the specified offset in the specified array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#setCurve(double, double, double, double, double, double, double, double)">setCurve</A></B>(double&nbsp;x1,         double&nbsp;y1,         double&nbsp;ctrlx1,         double&nbsp;ctrly1,         double&nbsp;ctrlx2,         double&nbsp;ctrly2,         double&nbsp;x2,         double&nbsp;y2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the location of the endpoints and controlpoints of this curve to the specified double coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#setCurve(java.awt.geom.Point2D[], int)">setCurve</A></B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>[]&nbsp;pts,         int&nbsp;offset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the location of the endpoints and controlpoints of this curve to the coordinates of the <code>Point2D</code> objects at the specified  offset in the specified array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#setCurve(java.awt.geom.Point2D, java.awt.geom.Point2D, java.awt.geom.Point2D, java.awt.geom.Point2D)">setCurve</A></B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;p1,         <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;cp1,         <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;cp2,         <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;p2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the location of the endpoints and controlpoints of this curve to the specified <code>Point2D</code> coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#solveCubic(double[])">solveCubic</A></B>(double[]&nbsp;eqn)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Solves the cubic whose coefficients are in the <code>eqn</code>  array and places the non-complex roots back into the same array,  returning the number of roots.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#solveCubic(double[], double[])">solveCubic</A></B>(double[]&nbsp;eqn,           double[]&nbsp;res)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Solve the cubic whose coefficients are in the <code>eqn</code> array and place the non-complex roots into the <code>res</code> array, returning the number of roots.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#subdivide(java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D)">subdivide</A></B>(<A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A>&nbsp;left,          <A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A>&nbsp;right)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subdivides this cubic curve and stores the resulting two subdivided curves into the left and right curve parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#subdivide(java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D)">subdivide</A></B>(<A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A>&nbsp;src,          <A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A>&nbsp;left,          <A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A>&nbsp;right)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subdivides the cubic curve specified by the <code>src</code> parameter and stores the resulting two subdivided curves into the  <code>left</code> and <code>right</code> curve parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#subdivide(double[], int, double[], int, double[], int)">subdivide</A></B>(double[]&nbsp;src,          int&nbsp;srcoff,          double[]&nbsp;left,          int&nbsp;leftoff,          double[]&nbsp;right,          int&nbsp;rightoff)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subdivides the cubic curve specified by the coordinates stored in the <code>src</code> array at indices <code>srcoff</code>  through (<code>srcoff</code>&nbsp;+&nbsp;7) and stores the resulting two subdivided curves into the two result arrays at the corresponding indices.</TD></TR></TABLE>&nbsp;<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.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.awt.Shape"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.awt.<A HREF="../../../java/awt/Shape.html">Shape</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/Shape.html#getBounds2D()">getBounds2D</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="CubicCurve2D()"><!-- --></A><H3>CubicCurve2D</H3><PRE>protected <B>CubicCurve2D</B>()</PRE><DL><DD>This is an abstract class that cannot be instantiated directly. Type-specific implementation subclasses are available for instantiation and provide a number of formats for storing the information necessary to satisfy the various accessor methods below.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/CubicCurve2D.Float.html"><CODE>CubicCurve2D.Float</CODE></A>, <A HREF="../../../java/awt/geom/CubicCurve2D.Double.html"><CODE>CubicCurve2D.Double</CODE></A></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="getX1()"><!-- --></A><H3>getX1</H3><PRE>public abstract double <B>getX1</B>()</PRE><DL><DD>Returns the X coordinate of the start point in double precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the X coordinate of the start point of the		<code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getY1()"><!-- --></A><H3>getY1</H3><PRE>public abstract double <B>getY1</B>()</PRE><DL><DD>Returns the Y coordinate of the start point in double precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Y coordinate of the start point of the		<code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getP1()"><!-- --></A><H3>getP1</H3><PRE>public abstract <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> <B>getP1</B>()</PRE><DL><DD>Returns the start point.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Point2D</code> that is the start point of 		the <code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getCtrlX1()"><!-- --></A><H3>getCtrlX1</H3><PRE>public abstract double <B>getCtrlX1</B>()</PRE><DL><DD>Returns the X coordinate of the first control point in double precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the X coordinate of the first control point of the		<code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getCtrlY1()"><!-- --></A><H3>getCtrlY1</H3><PRE>public abstract double <B>getCtrlY1</B>()</PRE><DL><DD>Returns the Y coordinate of the first control point in double precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Y coordinate of the first control point of the		<code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getCtrlP1()"><!-- --></A><H3>getCtrlP1</H3><PRE>public abstract <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> <B>getCtrlP1</B>()</PRE><DL><DD>Returns the first control point.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Point2D</code> that is the first control point of 		the <code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getCtrlX2()"><!-- --></A><H3>getCtrlX2</H3><PRE>public abstract double <B>getCtrlX2</B>()</PRE><DL><DD>Returns the X coordinate of the second control point

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?