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 x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double 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, y1</CODE> - the first specified coordinates used to set the start point of this <code>CubicCurve2D</code><DD><CODE>ctrlx1, ctrly1</CODE> - the second specified coordinates used to set the first control point of this <code>CubicCurve2D</code><DD><CODE>ctrlx2, ctrly2</CODE> - the third specified coordinates used to set the second control point of this <code>CubicCurve2D</code><DD><CODE>x2, 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[] coords, int 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> 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)</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>[] pts, int 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> 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 x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double 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, y1</CODE> - the first specified coordinates that specify the start point of a <code>CubicCurve2D</code><DD><CODE>ctrlx1, ctrly1</CODE> - the second specified coordinates that specify the first control point of a <code>CubicCurve2D</code><DD><CODE>ctrlx2, ctrly2</CODE> - the third specified coordinates that specify the second control point of a <code>CubicCurve2D</code><DD><CODE>x2, 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 x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double 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, y1</CODE> - the first specified coordinates that specify the start point of a <code>CubicCurve2D</code><DD><CODE>ctrlx1, ctrly1</CODE> - the second specified coordinates that specify the first control point of a <code>CubicCurve2D</code><DD><CODE>ctrlx2, ctrly2</CODE> - the third specified coordinates that specify the second control point of a <code>CubicCurve2D</code><DD><CODE>x2, 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[] coords, int 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[] coords, int 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> left, <A HREF="../../../java/awt/geom/CubicCurve2D.html">CubicCurve2D</A> 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 + -
显示快捷键?