Class Polygon
java.lang.Object
org.apache.sis.internal.feature.AbstractGeometry
org.apache.sis.internal.feature.j2d.FlatShape
org.apache.sis.internal.feature.j2d.Polyline
org.apache.sis.internal.feature.j2d.Polygon
- All Implemented Interfaces:
Shape
A polygons as a Java2D
Shape
.- Since:
- 1.1
- Version:
- 1.1
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.feature.j2d.Polyline
Polyline.Iter
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPolygon
(double[] coordinates, int size) Creates a new polygon with the given coordinates. -
Method Summary
Methods inherited from class org.apache.sis.internal.feature.j2d.Polyline
contains, contains, contains, getPathIterator, intersects, intersects, toString
Methods inherited from class org.apache.sis.internal.feature.j2d.FlatShape
contains, fastClip, getBounds, getBounds2D, getPathIterator
-
Constructor Details
-
Polygon
Polygon(double[] coordinates, int size) Creates a new polygon with the given coordinates. Thecoordinates
array shall not be empty.- Parameters:
coordinates
- the coordinate values as (x,y) tuples.size
- number of valid value incoordinates
array.
-