Class ShapeBuilder.Edge
java.lang.Object
org.elasticsearch.common.geo.builders.ShapeBuilder.Edge
- Enclosing class:
- ShapeBuilder<T extends org.locationtech.spatial4j.shape.Shape,G extends org.elasticsearch.geometry.Geometry,E extends ShapeBuilder<T,G,E>>
This helper class implements a linked list for
Coordinate
. It contains
fields for a dateline intersection and component id-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Edge(org.locationtech.jts.geom.Coordinate coordinate, ShapeBuilder.Edge next)
protected
Edge(org.locationtech.jts.geom.Coordinate coordinate, ShapeBuilder.Edge next, org.locationtech.jts.geom.Coordinate intersection)
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.locationtech.jts.geom.Coordinate
intersection(double position)
Set the intersection of this line segment to the given positionprotected static org.locationtech.jts.geom.Coordinate
position(org.locationtech.jts.geom.Coordinate p1, org.locationtech.jts.geom.Coordinate p2, double position)
protected void
setNext(ShapeBuilder.Edge next)
toString()
-
Field Details
-
MAX_COORDINATE
public static final org.locationtech.jts.geom.Coordinate MAX_COORDINATE
-
-
Constructor Details
-
Edge
protected Edge(org.locationtech.jts.geom.Coordinate coordinate, ShapeBuilder.Edge next, org.locationtech.jts.geom.Coordinate intersection) -
Edge
-
-
Method Details
-
setNext
-
intersection
protected org.locationtech.jts.geom.Coordinate intersection(double position)Set the intersection of this line segment to the given position- Parameters:
position
- position of the intersection [0..1]- Returns:
- the
Coordinate
of the intersection
-
position
protected static org.locationtech.jts.geom.Coordinate position(org.locationtech.jts.geom.Coordinate p1, org.locationtech.jts.geom.Coordinate p2, double position) -
toString
-