Codota Logo
PolygonPoint.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.poly2tri.geometry.polygon.PolygonPoint
constructor

Best Java code snippets using org.poly2tri.geometry.polygon.PolygonPoint.<init> (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: kendzi/kendzi3d

  private static Polygon convert(PolygonList2d polygon) {

    return new Polygon(polygon.getPoints().stream()
        .map(p -> new PolygonPoint(p.x, p.y)).collect(Collectors.toCollection(ArrayList<PolygonPoint>::new)));
  }
}
origin: org.orbisgis/poly2tri-core

  public static Polygon RandomCircleSweep2( double scale, int vertexCount )
  {
    PolygonPoint point;
    PolygonPoint[] points;
    double radius = scale/4;

    points = new PolygonPoint[vertexCount];
    for(int i=0; i<vertexCount; i++)
    {
      do
      {
        radius += scale/5*(0.5 - Math.random());                                        
        radius = radius > scale/2 ? scale/2 : radius;
        radius = radius < scale/10 ? scale/10 : radius;
      } while( radius < scale/10 || radius > scale/2 ); 
      point = new PolygonPoint( radius*Math.cos( (PI_2*i)/vertexCount ), 
                   radius*Math.sin( (PI_2*i)/vertexCount ) );
      points[i] = point;
    }            
    return new Polygon( points );
  }
}
origin: org.orbisgis/poly2tri-core

  radius = radius < scale/10 ? scale/10 : radius;
} while( radius < scale/10 || radius > scale/2 ); 
point = new PolygonPoint( radius*Math.cos( (PI_2*i)/vertexCount ), 
             radius*Math.sin( (PI_2*i)/vertexCount ) );
points[i] = point;
origin: org.orbisgis/h2gis-functions

private org.poly2tri.geometry.polygon.Polygon makePolygon(LineString lineString) {
  PolygonPoint[] points = new PolygonPoint[lineString.getNumPoints() - 1];
  for(int idPoint=0; idPoint < points.length; idPoint++) {
    Coordinate point = lineString.getCoordinateN(idPoint);
    points[idPoint] = new PolygonPoint(r(point.x), r(point.y), Double.isNaN(point.z) ? 0 : r(point.z));
  }
  return new org.poly2tri.geometry.polygon.Polygon(points);
}
origin: org.orbisgis/h2gis

private org.poly2tri.geometry.polygon.Polygon makePolygon(LineString lineString) {
  PolygonPoint[] points = new PolygonPoint[lineString.getNumPoints() - 1];
  for(int idPoint=0; idPoint < points.length; idPoint++) {
    Coordinate point = lineString.getCoordinateN(idPoint);
    points[idPoint] = new PolygonPoint(r(point.x), r(point.y), Double.isNaN(point.z) ? 0 : r(point.z));
  }
  return new org.poly2tri.geometry.polygon.Polygon(points);
}
origin: orbisgis/h2gis

private org.poly2tri.geometry.polygon.Polygon makePolygon(LineString lineString) {
  PolygonPoint[] points = new PolygonPoint[lineString.getNumPoints() - 1];
  for(int idPoint=0; idPoint < points.length; idPoint++) {
    Coordinate point = lineString.getCoordinateN(idPoint);
    points[idPoint] = new PolygonPoint(r(point.x), r(point.y), Double.isNaN(point.z) ? 0 : r(point.z));
  }
  return new org.poly2tri.geometry.polygon.Polygon(points);
}
org.poly2tri.geometry.polygonPolygonPoint<init>

Popular methods of PolygonPoint

  • equals
  • getNext
  • getPrevious
  • setNext
  • setPrevious

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now