org.osm2world.core.math
public class LineSegmentXZ extends Object implements PolylineShapeXZ
Constructor and Description |
---|
LineSegmentXZ(VectorXZ p1,
VectorXZ p2) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
VectorXZ |
getCenter() |
VectorXZ |
getIntersection(VectorXZ segmentP1,
VectorXZ segmentP2)
returns the intersection between this line segment and
the line segment defined by the parameters;
null if none exists.
|
double |
getLength()
returns the distance between this segment's two end nodes
|
List<LineSegmentXZ> |
getSegments()
returns the ordered list of segments between the vertices
|
List<VectorXZ> |
getVertexList()
|
int |
hashCode() |
boolean |
intersects(VectorXZ segmentP1,
VectorXZ segmentP2)
returns true if there is an intersection between this line segment and
the line segment defined by the parameters
|
LineSegmentXZ |
reverse()
produces the flipped version of this segment
|
String |
toString() |
public List<VectorXZ> getVertexList()
getVertexList
in interface ShapeXZ
public List<LineSegmentXZ> getSegments()
PolylineShapeXZ
getSegments
in interface PolylineShapeXZ
public VectorXZ getCenter()
public boolean intersects(VectorXZ segmentP1, VectorXZ segmentP2)
public VectorXZ getIntersection(VectorXZ segmentP1, VectorXZ segmentP2)
public double getLength()
getLength
in interface PolylineShapeXZ
public LineSegmentXZ reverse()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public final boolean equals(Object obj)
equals
in class Object