Uses of Interface
com.spatial4j.core.shape.Point
-
Packages that use Point Package Description com.spatial4j.core.context SpatialContext implementations are the facade to the Spatial4j API.com.spatial4j.core.context.jts com.spatial4j.core.distance Ways to calculate distance.com.spatial4j.core.io Reading & writing shapes in various forms.com.spatial4j.core.shape Shapes are the core geometry objects that Spatial4j provides.com.spatial4j.core.shape.impl com.spatial4j.core.shape.jts -
-
Uses of Point in com.spatial4j.core.context
Methods in com.spatial4j.core.context that return Point Modifier and Type Method Description PointSpatialContext. makePoint(double x, double y)Construct a point.Methods in com.spatial4j.core.context with parameters of type Point Modifier and Type Method Description doubleSpatialContext. calcDistance(Point p, double x2, double y2)Convenience that usesSpatialContext.getDistCalc()doubleSpatialContext. calcDistance(Point p, Point p2)Convenience that usesSpatialContext.getDistCalc()CircleSpatialContext. makeCircle(Point point, double distance)Construct a circle.RectangleSpatialContext. makeRectangle(Point lowerLeft, Point upperRight)Construct a rectangle.Method parameters in com.spatial4j.core.context with type arguments of type Point Modifier and Type Method Description ShapeSpatialContext. makeBufferedLineString(List<Point> points, double buf)Constructs a buffered line string.ShapeSpatialContext. makeLineString(List<Point> points)Constructs a line string. -
Uses of Point in com.spatial4j.core.context.jts
Methods in com.spatial4j.core.context.jts that return Point Modifier and Type Method Description PointJtsSpatialContext. makePoint(double x, double y)Method parameters in com.spatial4j.core.context.jts with type arguments of type Point Modifier and Type Method Description ShapeJtsSpatialContext. makeLineString(List<Point> points) -
Uses of Point in com.spatial4j.core.distance
Methods in com.spatial4j.core.distance that return Point Modifier and Type Method Description PointCartesianDistCalc. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)PointDistanceCalculator. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)Calculates where a destination point is given an origin (from) distance, and bearing (given in degrees -- 0-360).PointGeodesicSphereDistCalc. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)static PointDistanceUtils. pointOnBearingRAD(double startLat, double startLon, double distanceRAD, double bearingRAD, SpatialContext ctx, Point reuse)Given a start point (startLat, startLon), distance, and a bearing on a sphere, return the destination point.Methods in com.spatial4j.core.distance with parameters of type Point Modifier and Type Method Description RectangleCartesianDistCalc. calcBoxByDistFromPt(Point from, double distDEG, SpatialContext ctx, Rectangle reuse)RectangleDistanceCalculator. calcBoxByDistFromPt(Point from, double distDEG, SpatialContext ctx, Rectangle reuse)Calculates the bounding box of a circle, as specified by its center point and distance.RectangleGeodesicSphereDistCalc. calcBoxByDistFromPt(Point from, double distDEG, SpatialContext ctx, Rectangle reuse)doubleCartesianDistCalc. calcBoxByDistFromPt_yHorizAxisDEG(Point from, double distDEG, SpatialContext ctx)doubleDistanceCalculator. calcBoxByDistFromPt_yHorizAxisDEG(Point from, double distDEG, SpatialContext ctx)TheYcoordinate of the horizontal axis of a circle that has maximum width.doubleGeodesicSphereDistCalc. calcBoxByDistFromPt_yHorizAxisDEG(Point from, double distDEG, SpatialContext ctx)doubleAbstractDistanceCalculator. distance(Point from, Point to)doubleCartesianDistCalc. distance(Point from, double toX, double toY)doubleDistanceCalculator. distance(Point from, double toX, double toY)The distance betweenfromandPoint(toX,toY).doubleDistanceCalculator. distance(Point from, Point to)The distance betweenfromandto.doubleGeodesicSphereDistCalc. distance(Point from, double toX, double toY)PointCartesianDistCalc. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)PointDistanceCalculator. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)Calculates where a destination point is given an origin (from) distance, and bearing (given in degrees -- 0-360).PointGeodesicSphereDistCalc. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)static PointDistanceUtils. pointOnBearingRAD(double startLat, double startLon, double distanceRAD, double bearingRAD, SpatialContext ctx, Point reuse)Given a start point (startLat, startLon), distance, and a bearing on a sphere, return the destination point.booleanAbstractDistanceCalculator. within(Point from, double toX, double toY, double distance)booleanCartesianDistCalc. within(Point from, double toX, double toY, double distance)booleanDistanceCalculator. within(Point from, double toX, double toY, double distance)Returns true if the distance between from and to is <= distance. -
Uses of Point in com.spatial4j.core.io
Methods in com.spatial4j.core.io that return Point Modifier and Type Method Description static PointGeohashUtils. decode(String geohash, SpatialContext ctx)Decodes the given geohash into a latitude and longitudeprotected PointWKTReader. point(WKTReader.State state)Reads a raw Point (AKA Coordinate) from the current position.PointBinaryCodec. readPoint(DataInput dataInput)Methods in com.spatial4j.core.io that return types with arguments of type Point Modifier and Type Method Description protected List<Point>WKTReader. pointList(WKTReader.State state)Reads a list of Points (AKA CoordinateSequence) from the current position.List<Point>PolyshapeReader.XReader. readPoints(SpatialContext ctx)Methods in com.spatial4j.core.io with parameters of type Point Modifier and Type Method Description protected StringBuilderWKTWriter. append(StringBuilder buffer, Point p, NumberFormat nf)voidBinaryCodec. writePoint(DataOutput dataOutput, Point pt) -
Uses of Point in com.spatial4j.core.shape
Methods in com.spatial4j.core.shape that return Point Modifier and Type Method Description PointShape. getCenter()Returns the center point of this shape.PointShapeCollection. getCenter() -
Uses of Point in com.spatial4j.core.shape.impl
Classes in com.spatial4j.core.shape.impl that implement Point Modifier and Type Class Description classPointImplA basic 2D implementation of a Point.Fields in com.spatial4j.core.shape.impl declared as Point Modifier and Type Field Description protected PointCircleImpl. pointMethods in com.spatial4j.core.shape.impl that return Point Modifier and Type Method Description PointBufferedLine. getA()PointBufferedLine. getB()PointBufferedLine. getCenter()PointBufferedLineString. getCenter()PointCircleImpl. getCenter()PointRectangleImpl. getCenter()Methods in com.spatial4j.core.shape.impl that return types with arguments of type Point Modifier and Type Method Description List<Point>BufferedLineString. getPoints()Methods in com.spatial4j.core.shape.impl with parameters of type Point Modifier and Type Method Description booleanBufferedLine. contains(Point p)static voidInfBufLine. cornerByQuadrant(Rectangle r, int cornerQuad, Point out)doubleInfBufLine. distanceUnbuffered(Point c)INTERNAL AKA lineToPointDistancestatic booleanPointImpl. equals(Point thiz, Object o)AllPointimplementations should use this definition ofObject.equals(Object).static doubleBufferedLine. expandBufForLongitudeSkew(Point pA, Point pB, double buf)CallsDistanceUtils.calcLonDegreesAtLat(double, double)given pA or pB's latitude; whichever is farthest.static intPointImpl. hashCode(Point thiz)AllPointimplementations should use this definition ofObject.hashCode().intInfBufLine. quadrant(Point c)INTERNAL: AKA lineToPointQuadrantSpatialRelationCircleImpl. relate(Point point)SpatialRelationRectangleImpl. relate(Point point)Constructors in com.spatial4j.core.shape.impl with parameters of type Point Constructor Description BufferedLine(Point pA, Point pB, double buf, SpatialContext ctx)Creates a buffered line from pA to pB.CircleImpl(Point p, double radiusDEG, SpatialContext ctx)GeoCircle(Point p, double radiusDEG, SpatialContext ctx)RectangleImpl(Point lowerLeft, Point upperRight, SpatialContext ctx)A convenience constructor which pulls out the coordinates.Constructor parameters in com.spatial4j.core.shape.impl with type arguments of type Point Constructor Description BufferedLineString(List<Point> points, double buf, boolean expandBufForLongitudeSkew, SpatialContext ctx)BufferedLineString(List<Point> points, double buf, SpatialContext ctx)Needs at least 1 point, usually more than that. -
Uses of Point in com.spatial4j.core.shape.jts
Classes in com.spatial4j.core.shape.jts that implement Point Modifier and Type Class Description classJtsPointWraps aPoint.Methods in com.spatial4j.core.shape.jts that return Point Modifier and Type Method Description PointJtsPoint. getCenter()Methods in com.spatial4j.core.shape.jts with parameters of type Point Modifier and Type Method Description SpatialRelationJtsGeometry. relate(Point pt)
-