public class XYLine extends XYGeometry
float[]
, float[]
x, y arrays
coordinates.Modifier and Type | Field and Description |
---|---|
float |
maxX
maximum y of this line's bounding box
|
float |
maxY
maximum y of this line's bounding box
|
float |
minX
minimum x of this line's bounding box
|
float |
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) |
float[] |
getX()
Returns a copy of the internal x array
|
float |
getX(int vertex)
Returns x value at given index
|
float[] |
getY()
Returns a copy of the internal y array
|
float |
getY(int vertex)
Returns y value at given index
|
int |
hashCode() |
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 XYLine(float[] x, float[] y)
public int numPoints()
public float getX(int vertex)
public float getY(int vertex)
public float[] getX()
public float[] getY()
protected Component2D toComponent2D()
XYGeometry
toComponent2D
in class XYGeometry
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.