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 Geometry,E extends ShapeBuilder<T,G,E>>
protected static final class ShapeBuilder.Edge extends java.lang.ObjectThis 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 org.locationtech.jts.geom.CoordinateMAX_COORDINATE
-
Constructor Summary
Constructors Modifier Constructor Description protectedEdge(org.locationtech.jts.geom.Coordinate coordinate, ShapeBuilder.Edge next)protectedEdge(org.locationtech.jts.geom.Coordinate coordinate, ShapeBuilder.Edge next, org.locationtech.jts.geom.Coordinate intersection)
-
Method Summary
Modifier and Type Method Description protected org.locationtech.jts.geom.Coordinateintersection(double position)Set the intersection of this line segment to the given positionprotected static org.locationtech.jts.geom.Coordinateposition(org.locationtech.jts.geom.Coordinate p1, org.locationtech.jts.geom.Coordinate p2, double position)protected voidsetNext(ShapeBuilder.Edge next)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Edge
protected Edge(org.locationtech.jts.geom.Coordinate coordinate, ShapeBuilder.Edge next, org.locationtech.jts.geom.Coordinate intersection)
-
Edge
protected Edge(org.locationtech.jts.geom.Coordinate coordinate, ShapeBuilder.Edge next)
-
-
Method Detail
-
setNext
protected void setNext(ShapeBuilder.Edge next)
-
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
Coordinateof 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-