jdk/src/share/classes/java/awt/geom/PathIterator.java
author erikj
Thu, 07 Jun 2012 18:05:09 -0700
changeset 12813 c10ab96dcf41
parent 5506 202f599c92aa
child 16734 da1901d79073
permissions -rw-r--r--
7170969: Add @GenerateNativeHeader to classes whose fields need to be exported for JNI Reviewed-by: ohair, ohrstrom, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.awt.geom;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
12813
c10ab96dcf41 7170969: Add @GenerateNativeHeader to classes whose fields need to be exported for JNI
erikj
parents: 5506
diff changeset
    28
import javax.tools.annotation.GenerateNativeHeader;
c10ab96dcf41 7170969: Add @GenerateNativeHeader to classes whose fields need to be exported for JNI
erikj
parents: 5506
diff changeset
    29
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * The <code>PathIterator</code> interface provides the mechanism
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * for objects that implement the {@link java.awt.Shape Shape}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * interface to return the geometry of their boundary by allowing
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * a caller to retrieve the path of that boundary a segment at a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * time.  This interface allows these objects to retrieve the path of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * their boundary a segment at a time by using 1st through 3rd order
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * B&eacute;zier curves, which are lines and quadratic or cubic
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * B&eacute;zier splines.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * Multiple subpaths can be expressed by using a "MOVETO" segment to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * create a discontinuity in the geometry to move from the end of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * one subpath to the beginning of the next.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * Each subpath can be closed manually by ending the last segment in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * the subpath on the same coordinate as the beginning "MOVETO" segment
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * for that subpath or by using a "CLOSE" segment to append a line
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * segment from the last point back to the first.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * Be aware that manually closing an outline as opposed to using a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * "CLOSE" segment to close the path might result in different line
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * style decorations being used at the end points of the subpath.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * For example, the {@link java.awt.BasicStroke BasicStroke} object
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * uses a line "JOIN" decoration to connect the first and last points
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * if a "CLOSE" segment is encountered, whereas simply ending the path
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * on the same coordinate as the beginning coordinate results in line
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * "CAP" decorations being used at the ends.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * @see java.awt.Shape
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 * @see java.awt.BasicStroke
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * @author Jim Graham
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 */
12813
c10ab96dcf41 7170969: Add @GenerateNativeHeader to classes whose fields need to be exported for JNI
erikj
parents: 5506
diff changeset
    62
/* No native methods here, but the constants are needed in the supporting JNI code */
c10ab96dcf41 7170969: Add @GenerateNativeHeader to classes whose fields need to be exported for JNI
erikj
parents: 5506
diff changeset
    63
@GenerateNativeHeader
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
public interface PathIterator {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * The winding rule constant for specifying an even-odd rule
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     * for determining the interior of a path.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     * The even-odd rule specifies that a point lies inside the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * path if a ray drawn in any direction from that point to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * infinity is crossed by path segments an odd number of times.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    public static final int WIND_EVEN_ODD       = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     * The winding rule constant for specifying a non-zero rule
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * for determining the interior of a path.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * The non-zero rule specifies that a point lies inside the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     * path if a ray drawn in any direction from that point to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * infinity is crossed by path segments a different number
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     * of times in the counter-clockwise direction than the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * clockwise direction.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    public static final int WIND_NON_ZERO       = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * The segment type constant for a point that specifies the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * starting location for a new subpath.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    public static final int SEG_MOVETO          = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * The segment type constant for a point that specifies the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * end point of a line to be drawn from the most recently
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * specified point.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    public static final int SEG_LINETO          = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * The segment type constant for the pair of points that specify
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * a quadratic parametric curve to be drawn from the most recently
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * specified point.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * The curve is interpolated by solving the parametric control
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * equation in the range <code>(t=[0..1])</code> using
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * the most recently specified (current) point (CP),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * the first control point (P1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * and the final interpolated control point (P2).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * The parametric control equation for this curve is:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     *          P(t) = B(2,0)*CP + B(2,1)*P1 + B(2,2)*P2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     *          0 &lt;= t &lt;= 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     *        B(n,m) = mth coefficient of nth degree Bernstein polynomial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     *               = C(n,m) * t^(m) * (1 - t)^(n-m)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     *        C(n,m) = Combinations of n things, taken m at a time
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     *               = n! / (m! * (n-m)!)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    public static final int SEG_QUADTO          = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * The segment type constant for the set of 3 points that specify
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * a cubic parametric curve to be drawn from the most recently
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * specified point.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * The curve is interpolated by solving the parametric control
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * equation in the range <code>(t=[0..1])</code> using
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * the most recently specified (current) point (CP),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * the first control point (P1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * the second control point (P2),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * and the final interpolated control point (P3).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * The parametric control equation for this curve is:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     *          P(t) = B(3,0)*CP + B(3,1)*P1 + B(3,2)*P2 + B(3,3)*P3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     *          0 &lt;= t &lt;= 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     *        B(n,m) = mth coefficient of nth degree Bernstein polynomial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     *               = C(n,m) * t^(m) * (1 - t)^(n-m)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     *        C(n,m) = Combinations of n things, taken m at a time
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     *               = n! / (m! * (n-m)!)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * This form of curve is commonly known as a B&eacute;zier curve.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    public static final int SEG_CUBICTO         = 3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     * The segment type constant that specifies that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * the preceding subpath should be closed by appending a line segment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * back to the point corresponding to the most recent SEG_MOVETO.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
    public static final int SEG_CLOSE           = 4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * Returns the winding rule for determining the interior of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * path.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * @return the winding rule.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * @see #WIND_EVEN_ODD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * @see #WIND_NON_ZERO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    public int getWindingRule();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     * Tests if the iteration is complete.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     * @return <code>true</code> if all the segments have
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * been read; <code>false</code> otherwise.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
    public boolean isDone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * Moves the iterator to the next segment of the path forwards
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     * along the primary direction of traversal as long as there are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * more points in that direction.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    public void next();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     * Returns the coordinates and type of the current path segment in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * the iteration.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * The return value is the path-segment type:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * SEG_MOVETO, SEG_LINETO, SEG_QUADTO, SEG_CUBICTO, or SEG_CLOSE.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * A float array of length 6 must be passed in and can be used to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * store the coordinates of the point(s).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * Each point is stored as a pair of float x,y coordinates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * SEG_MOVETO and SEG_LINETO types returns one point,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * SEG_QUADTO returns two points,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * SEG_CUBICTO returns 3 points
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * and SEG_CLOSE does not return any points.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * @param coords an array that holds the data returned from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * @return the path-segment type of the current path segment.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * @see #SEG_MOVETO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     * @see #SEG_LINETO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * @see #SEG_QUADTO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     * @see #SEG_CUBICTO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * @see #SEG_CLOSE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    public int currentSegment(float[] coords);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * Returns the coordinates and type of the current path segment in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * the iteration.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * The return value is the path-segment type:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * SEG_MOVETO, SEG_LINETO, SEG_QUADTO, SEG_CUBICTO, or SEG_CLOSE.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * A double array of length 6 must be passed in and can be used to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * store the coordinates of the point(s).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * Each point is stored as a pair of double x,y coordinates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * SEG_MOVETO and SEG_LINETO types returns one point,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     * SEG_QUADTO returns two points,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * SEG_CUBICTO returns 3 points
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     * and SEG_CLOSE does not return any points.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     * @param coords an array that holds the data returned from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * @return the path-segment type of the current path segment.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * @see #SEG_MOVETO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * @see #SEG_LINETO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * @see #SEG_QUADTO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * @see #SEG_CUBICTO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * @see #SEG_CLOSE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
    public int currentSegment(double[] coords);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
}