Package com.nr.cg

Examples of com.nr.cg.Convexhull


    Ran myran = new Ran(17);
    for (i=0;i<N;i++) {
      pvec[i].x[0]=myran.doub();
      pvec[i].x[1]=myran.doub();
    }
    Convexhull cvx=new Convexhull(pvec);

    // Hull should be close to unit square
//    System.out.printf(cvx.nhull);
    double[] a=new double[4],dis=new double[cvx.nhull];
    for (i=0;i<cvx.nhull;i++) {
View Full Code Here

TOP

Related Classes of com.nr.cg.Convexhull

Copyright © 2018 www.massapicom. 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.