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> <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> at, double flatness)</CODE><BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#getX1()">getX1</A></B>()</CODE><BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#getX2()">getX2</A></B>()</CODE><BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#getY1()">getY1</A></B>()</CODE><BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#getY2()">getY2</A></B>()</CODE><BR> 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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#intersects(double, double, double, double)">intersects</A></B>(double x, double y, double w, double h)</CODE><BR> 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> 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> r)</CODE><BR> 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> 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> c)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#setCurve(double[], int)">setCurve</A></B>(double[] coords, int offset)</CODE><BR> 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 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 x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)</CODE><BR> 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> 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>[] pts, int offset)</CODE><BR> 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> 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> p1, <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> cp1, <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> cp2, <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> p2)</CODE><BR> 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 int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#solveCubic(double[])">solveCubic</A></B>(double[] eqn)</CODE><BR> 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 int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/CubicCurve2D.html#solveCubic(double[], double[])">solveCubic</A></B>(double[] eqn, double[] res)</CODE><BR> 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> 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> left, <A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A> right)</CODE><BR> 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 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> src, <A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A> left, <A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A> right)</CODE><BR> 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 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[] src, int srcoff, double[] left, int leftoff, double[] right, int rightoff)</CODE><BR> Subdivides the cubic curve specified by the coordinates stored in the <code>src</code> array at indices <code>srcoff</code> through (<code>srcoff</code> + 7) and stores the resulting two subdivided curves into the two result arrays at the corresponding indices.</TD></TR></TABLE> <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> <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> <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 + -
显示快捷键?