public final class XYPolygon extends XYGeometry
float[]
, float[]
x, y arrays
coordinates.Modifier and Type | Field and Description |
---|---|
float |
maxX
maximum x of this polygon's bounding box area
|
float |
maxY
maximum y of this polygon's bounding box area
|
float |
minX
minimum x of this polygon's bounding box area
|
float |
minY
minimum y of this polygon's bounding box area
|
Constructor and Description |
---|
XYPolygon(float[] x,
float[] y,
XYPolygon... holes)
Creates a new Polygon from the supplied x, y arrays, and optionally any holes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
XYPolygon[] |
getHoles()
Returns a copy of the internal holes array
|
float[] |
getPolyX()
Returns a copy of the internal x array
|
float |
getPolyX(int vertex)
Returns x value at given index
|
float[] |
getPolyY()
Returns a copy of the internal y array
|
float |
getPolyY(int vertex)
Returns y value at given index
|
GeoUtils.WindingOrder |
getWindingOrder()
Returns the winding order (CW, COLINEAR, CCW) for the polygon shell
|
int |
hashCode() |
int |
numHoles()
returns the number of holes for the polygon
|
int |
numPoints()
returns the number of vertex points
|
protected Component2D |
toComponent2D()
get a Component2D from this object
|
String |
toString() |
create
public final float minX
public final float maxX
public final float minY
public final float maxY
public XYPolygon(float[] x, float[] y, XYPolygon... holes)
public int numPoints()
public float[] getPolyX()
public float getPolyX(int vertex)
public float[] getPolyY()
public float getPolyY(int vertex)
public XYPolygon[] getHoles()
public GeoUtils.WindingOrder getWindingOrder()
public int numHoles()
protected Component2D toComponent2D()
XYGeometry
toComponent2D
in class XYGeometry
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.