Package net.algart.math.patterns

Examples of net.algart.math.patterns.Pattern.points()


        System.out.println("Sphere with center " + Point.valueOf(center) + " and radius " + r);
        long t1 = System.nanoTime();
        Pattern p = Patterns.newSphereIntegerPattern(Point.valueOf(center), r);
        long t2 = System.nanoTime();
        System.out.printf(Locale.US, "Pattern created in %.3f ms: %s%n", (t2 - t1) * 1e-6, p);
        Set<Point> points = p.points();
        System.out.println(points.size() + " points");
        if (points.size() < 1000)
            System.out.println(new TreeSet<Point>(points));
        for (int iterationIndex = 1; iterationIndex <= numberOfIterations; iterationIndex++) {
            System.out.println();
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.