Class ShapeBuilder.Edge
- java.lang.Object
-
- org.elasticsearch.common.geo.builders.ShapeBuilder.Edge
-
- Enclosing class:
- ShapeBuilder<T extends Shape,G extends Geometry,E extends ShapeBuilder<T,G,E>>
protected static final class ShapeBuilder.Edge extends Object
This helper class implements a linked list forCoordinate. It contains fields for a dateline intersection and component id
-
-
Field Summary
Fields Modifier and Type Field Description static CoordinateMAX_COORDINATE
-
Constructor Summary
Constructors Modifier Constructor Description protectedEdge(Coordinate coordinate, ShapeBuilder.Edge next)protectedEdge(Coordinate coordinate, ShapeBuilder.Edge next, Coordinate intersection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Coordinateintersection(double position)Set the intersection of this line segment to the given positionprotected static Coordinateposition(Coordinate p1, Coordinate p2, double position)protected voidsetNext(ShapeBuilder.Edge next)StringtoString()
-
-
-
Field Detail
-
MAX_COORDINATE
public static final Coordinate MAX_COORDINATE
-
-
Constructor Detail
-
Edge
protected Edge(Coordinate coordinate, ShapeBuilder.Edge next, Coordinate intersection)
-
Edge
protected Edge(Coordinate coordinate, ShapeBuilder.Edge next)
-
-
Method Detail
-
setNext
protected void setNext(ShapeBuilder.Edge next)
-
intersection
protected 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
Coordinateof the intersection
-
position
protected static Coordinate position(Coordinate p1, Coordinate p2, double position)
-
-