cubiccurve2d.html

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

HTML
1,359
字号
 in double precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the X coordinate of the second control point of the		<code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getCtrlY2()"><!-- --></A><H3>getCtrlY2</H3><PRE>public abstract double <B>getCtrlY2</B>()</PRE><DL><DD>Returns the Y coordinate of the second control point in double precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Y coordinate of the second control point of the		<code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getCtrlP2()"><!-- --></A><H3>getCtrlP2</H3><PRE>public abstract <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> <B>getCtrlP2</B>()</PRE><DL><DD>Returns the second control point.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Point2D</code> that is the second control point of 		the <code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getX2()"><!-- --></A><H3>getX2</H3><PRE>public abstract double <B>getX2</B>()</PRE><DL><DD>Returns the X coordinate of the end point in double precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the X coordinate of the end point of the		<code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getY2()"><!-- --></A><H3>getY2</H3><PRE>public abstract double <B>getY2</B>()</PRE><DL><DD>Returns the Y coordinate of the end point in double precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Y coordinate of the end point of the		<code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="getP2()"><!-- --></A><H3>getP2</H3><PRE>public abstract <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> <B>getP2</B>()</PRE><DL><DD>Returns the end point.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Point2D</code> that is the end point of 		the <code>CubicCurve2D</code>.</DL></DD></DL><HR><A NAME="setCurve(double, double, double, double, double, double, double, double)"><!-- --></A><H3>setCurve</H3><PRE>public abstract void <B>setCurve</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)</PRE><DL><DD>Sets the location of the endpoints and controlpoints of this curve to the specified double coordinates.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x1,&nbsp;y1</CODE> - the first specified coordinates used to set the start		point of this <code>CubicCurve2D</code><DD><CODE>ctrlx1,&nbsp;ctrly1</CODE> - the second specified coordinates used to set the		first control point of this <code>CubicCurve2D</code><DD><CODE>ctrlx2,&nbsp;ctrly2</CODE> - the third specified coordinates used to set the 		second control point of this <code>CubicCurve2D</code><DD><CODE>x2,&nbsp;y2</CODE> - the fourth specified coordinates used to set the end		point of this <code>CubicCurve2D</code></DL></DD></DL><HR><A NAME="setCurve(double[], int)"><!-- --></A><H3>setCurve</H3><PRE>public void <B>setCurve</B>(double[]&nbsp;coords,                     int&nbsp;offset)</PRE><DL><DD>Sets the location of the endpoints and controlpoints of this curve to the double coordinates at the specified offset in the specified array.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>coords</CODE> - a double array containing coordinates<DD><CODE>offset</CODE> - the index of <code>coords</code> at which to begin 		setting the endpoints and controlpoints of this curve		to the coordinates contained in <code>coords</code></DL></DD></DL><HR><A NAME="setCurve(java.awt.geom.Point2D, java.awt.geom.Point2D, java.awt.geom.Point2D, java.awt.geom.Point2D)"><!-- --></A><H3>setCurve</H3><PRE>public void <B>setCurve</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)</PRE><DL><DD>Sets the location of the endpoints and controlpoints of this curve to the specified <code>Point2D</code> coordinates.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p1</CODE> - the first specified <code>Point2D</code> used to set the		start point of this curve<DD><CODE>p2</CODE> - the second specified <code>Point2D</code> used to set the		first control point of this curve<DD><CODE>p3</CODE> - the third specified <code>Point2D</code> used to set the		second control point of this curve<DD><CODE>p4</CODE> - the fourth specified <code>Point2D</code> used to set the		end point of this curve</DL></DD></DL><HR><A NAME="setCurve(java.awt.geom.Point2D[], int)"><!-- --></A><H3>setCurve</H3><PRE>public void <B>setCurve</B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>[]&nbsp;pts,                     int&nbsp;offset)</PRE><DL><DD>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.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pts</CODE> - an array of <code>Point2D</code> objects<DD><CODE>offset</CODE> - the index of <code>pts</code> at which to begin setting		the endpoints and controlpoints of this curve to the 		points contained in <code>pts</code></DL></DD></DL><HR><A NAME="setCurve(java.awt.geom.CubicCurve2D)"><!-- --></A><H3>setCurve</H3><PRE>public void <B>setCurve</B>(<A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A>&nbsp;c)</PRE><DL><DD>Sets the location of the endpoints and controlpoints of this curve to the same as those in the specified <code>CubicCurve2D</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the specified <code>CubicCurve2D</code></DL></DD></DL><HR><A NAME="getFlatnessSq(double, double, double, double, double, double, double, double)"><!-- --></A><H3>getFlatnessSq</H3><PRE>public static double <B>getFlatnessSq</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)</PRE><DL><DD>Returns the square of the flatness of the cubic curve specified by the indicated controlpoints. The flatness is the maximum distance  of a controlpoint from the line connecting the endpoints.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x1,&nbsp;y1</CODE> - the first specified coordinates that specify the start		point of a <code>CubicCurve2D</code><DD><CODE>ctrlx1,&nbsp;ctrly1</CODE> - the second specified coordinates that specify the  		first control point of a <code>CubicCurve2D</code><DD><CODE>ctrlx2,&nbsp;ctrly2</CODE> - the third specified coordinates that specify the  		second control point of a <code>CubicCurve2D</code><DD><CODE>x2,&nbsp;y2</CODE> - the fourth specified coordinates that specify the  		end point of a <code>CubicCurve2D</code><DT><B>Returns:</B><DD>the square of the flatness of the <code>CubicCurve2D</code>		represented by the specified coordinates.</DL></DD></DL><HR><A NAME="getFlatness(double, double, double, double, double, double, double, double)"><!-- --></A><H3>getFlatness</H3><PRE>public static double <B>getFlatness</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)</PRE><DL><DD>Returns the flatness of the cubic curve specified by the indicated controlpoints. The flatness is the maximum distance  of a controlpoint from the line connecting the endpoints.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x1,&nbsp;y1</CODE> - the first specified coordinates that specify the start		point of a <code>CubicCurve2D</code><DD><CODE>ctrlx1,&nbsp;ctrly1</CODE> - the second specified coordinates that specify the  		first control point of a <code>CubicCurve2D</code><DD><CODE>ctrlx2,&nbsp;ctrly2</CODE> - the third specified coordinates that specify the  		second control point of a <code>CubicCurve2D</code><DD><CODE>x2,&nbsp;y2</CODE> - the fourth specified coordinates that specify the  		end point of a <code>CubicCurve2D</code><DT><B>Returns:</B><DD>the flatness of the <code>CubicCurve2D</code>		represented by the specified coordinates.</DL></DD></DL><HR><A NAME="getFlatnessSq(double[], int)"><!-- --></A><H3>getFlatnessSq</H3><PRE>public static double <B>getFlatnessSq</B>(double[]&nbsp;coords,                                   int&nbsp;offset)</PRE><DL><DD>Returns the square of the flatness of the cubic curve specified by the controlpoints stored in the indicated array at the  indicated index. The flatness is the maximum distance  of a controlpoint from the line connecting the endpoints.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>coords</CODE> - an array containing coordinates<DD><CODE>offset</CODE> - the index of <code>coords</code> at which to begin 		setting the endpoints and controlpoints of this curve		to the coordinates contained in <code>coords</code><DT><B>Returns:</B><DD>the square of the flatness of the <code>CubicCurve2D</code>		specified by the coordinates in <code>coords</code> at		the specified offset.</DL></DD></DL><HR><A NAME="getFlatness(double[], int)"><!-- --></A><H3>getFlatness</H3><PRE>public static double <B>getFlatness</B>(double[]&nbsp;coords,                                 int&nbsp;offset)</PRE><DL><DD>Returns the flatness of the cubic curve specified by the controlpoints stored in the indicated array at the  indicated index.  The flatness is the maximum distance  of a controlpoint from the line connecting the endpoints.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>coords</CODE> - an array containing coordinates<DD><CODE>offset</CODE> - the index of <code>coords</code> at which to begin 		setting the endpoints and controlpoints of this curve		to the coordinates contained in <code>coords</code><DT><B>Returns:</B><DD>the flatness of the <code>CubicCurve2D</code>		specified by the coordinates in <code>coords</code> at		the specified offset.</DL></DD></DL><HR><A NAME="getFlatnessSq()"><!-- --></A><H3>getFlatnessSq</H3><PRE>public double <B>getFlatnessSq</B>()</PRE><DL><DD>Returns the square of the flatness of this curve.  The flatness is the  maximum distance of a controlpoint from the line connecting the  endpoints.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the square of the flatness of this curve.</DL></DD></DL><HR><A NAME="getFlatness()"><!-- --></A><H3>getFlatness</H3><PRE>public double <B>getFlatness</B>()</PRE><DL><DD>Returns the flatness of this curve.  The flatness is the  maximum distance of a controlpoint from the line connecting the  endpoints.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the flatness of this curve.</DL></DD></DL><HR><A NAME="subdivide(java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D)"><!-- --></A><H3>subdivide</H3><PRE>public void <B>subdivide</B>(<A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A>&nbsp;left,                      <A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A>&nbsp;right)</PRE><DL><DD>Subdivides this cubic curve and stores the resulting two subdivided curves into the left and right curve parameters. Either or both of the left and right objects may be the same as this object or null.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>left</CODE> - the cubic curve object for storing for the left or first half of the subdivided curve<DD><CODE>right</CODE> - the cubic curve object for storing for the right or second half of the subdivided curve</DL></DD></DL><HR><A NAME="subdivide(java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D)"><!-- --></A><H3>

⌨️ 快捷键说明

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