org.osm2world.core.math.shapes
public class PolylineXZ extends Object implements PolylineShapeXZ
Constructor and Description |
---|
PolylineXZ(List<VectorXZ> vertices) |
PolylineXZ(VectorXZ... vertices) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getLength()
returns the length of the entire polyline
|
List<LineSegmentXZ> |
getSegments()
returns the ordered list of segments between the vertices
|
List<VectorXZ> |
getVertexList()
returns the shape's vertices.
|
int |
hashCode() |
double |
offsetOf(VectorXZ point)
returns the length between the start of this polyline and a given point on it
|
VectorXZ |
pointAtOffset(double offset)
returns the point at a given distance from the start of this linestring.
|
String |
toString() |
public PolylineXZ(List<VectorXZ> vertices)
public PolylineXZ(VectorXZ... vertices)
public List<VectorXZ> getVertexList()
ShapeXZ
getVertexList
in interface ShapeXZ
public List<LineSegmentXZ> getSegments()
PolylineShapeXZ
getSegments
in interface PolylineShapeXZ
public double getLength()
PolylineShapeXZ
getLength
in interface PolylineShapeXZ
public double offsetOf(VectorXZ point)
point
- the point, must lie on this polyline (but does not have to be a vertex)public VectorXZ pointAtOffset(double offset)
offset
- the offset, must be between 0 and this segment's lengthpublic boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object