Examples of BufferedLineString


Examples of com.spatial4j.core.shape.impl.BufferedLineString

  }

  /** Constructs a line string. It's an ordered sequence of connected vertexes. There
   * is no official shape/interface for it yet so we just return Shape. */
  public Shape makeLineString(List<Point> points) {
    return new BufferedLineString(points, 0, false, this);
  }
View Full Code Here

Examples of com.spatial4j.core.shape.impl.BufferedLineString

  /** Constructs a buffered line string. It's an ordered sequence of connected vertexes,
   * with a buffer distance along the line in all directions. There
   * is no official shape/interface for it so we just return Shape. */
  public Shape makeBufferedLineString(List<Point> points, double buf) {
    return new BufferedLineString(points, buf, isGeo(), this);
  }
View Full Code Here

Examples of com.spatial4j.core.shape.impl.BufferedLineString

          points.add(randomPointIn(nearR));
        }
        double maxBuf = Math.max(nearR.getWidth(), nearR.getHeight());
        double buf = Math.abs(randomGaussian()) * maxBuf / 4;
        buf = randomInt((int) divisible(buf));
        return new BufferedLineString(points, buf, ctx);
      }

      protected Point randomPointInEmptyShape(BufferedLineString shape) {
        List<Point> points = shape.getPoints();
        return points.get(randomInt(points.size() - 1));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.