public class XYLine extends Object
double[], double[] x, y arrays
 coordinates.| Modifier and Type | Field and Description | 
|---|---|
double | 
maxX
maximum x of this line's bounding box 
 | 
double | 
maxY
maximum y of this line's bounding box 
 | 
double | 
minX
minimum x of this line's bounding box 
 | 
double | 
minY
minimum y of this line's bounding box 
 | 
| Constructor and Description | 
|---|
XYLine(float[] x,
      float[] y)
Creates a new Line from the supplied x/y array. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
double[] | 
getX()
Returns a copy of the internal x array 
 | 
double | 
getX(int vertex)
Returns x value at given index 
 | 
double[] | 
getY()
Returns a copy of the internal y array 
 | 
double | 
getY(int vertex)
Returns y value at given index 
 | 
int | 
hashCode()  | 
int | 
numPoints()
returns the number of vertex points 
 | 
String | 
toGeoJSON()
prints polygons as geojson 
 | 
String | 
toString()  | 
public final double minX
public final double maxX
public final double minY
public final double maxY
public XYLine(float[] x,
              float[] y)
public int numPoints()
public double getX(int vertex)
public double getY(int vertex)
public double[] getX()
public double[] getY()
public String toGeoJSON()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.