Examples of Spline2D


Examples of org.jgraph.util.Spline2D

      if (lineStyle == GraphConstants.STYLE_BEZIER && n > 2) {
        bezier = new Bezier(p);
        p2 = bezier.getPoint(bezier.getPointCount() - 1);
      } else if (lineStyle == GraphConstants.STYLE_SPLINE && n > 2) {
        spline = new Spline2D(p);
        double[] point = spline.getPoint(0.9875);
        // Extrapolate p2 away from the end point, pe, to avoid integer
        // rounding errors becoming too large when creating the line end
        double scaledX = pe.getX() - ((pe.getX() - point[0]) * 128);
        double scaledY = pe.getY() - ((pe.getY() - point[1]) * 128);
 
View Full Code Here

Examples of org.jgraph.util.Spline2D

      if (lineStyle == GraphConstants.STYLE_BEZIER && n > 2) {
        bezier = new Bezier(p);
        p2 = bezier.getPoint(bezier.getPointCount() - 1);
      } else if (lineStyle == GraphConstants.STYLE_SPLINE && n > 2) {
        spline = new Spline2D(p);
        double[] point = spline.getPoint(0.9875);
        // Extrapolate p2 away from the end point, pe, to avoid integer
        // rounding errors becoming too large when creating the line end
        double scaledX = pe.getX() - ((pe.getX() - point[0]) * 128);
        double scaledY = pe.getY() - ((pe.getY() - point[1]) * 128);
 
View Full Code Here

Examples of org.jgraph.util.Spline2D

      if (lineStyle == GraphConstants.STYLE_BEZIER && n > 2) {
        bezier = new Bezier(p);
        p2 = bezier.getPoint(bezier.getPointCount() - 1);
      } else if (lineStyle == GraphConstants.STYLE_SPLINE && n > 2) {
        spline = new Spline2D(p);
        double[] point = spline.getPoint(0.9875);
        // Extrapolate p2 away from the end point, pe, to avoid integer
        // rounding errors becoming too large when creating the line end
        double scaledX = pe.getX() - ((pe.getX() - point[0]) * 128);
        double scaledY = pe.getY() - ((pe.getY() - point[1]) * 128);
 
View Full Code Here

Examples of sc.math.Spline2D

                System.exit(0);
            }
        });
        setVisible(true);

        spline = new Spline2D(new CatmullRomCurve());
        selected = -1;
        mouse = new Point();

        // start with one randomly generated curve
        for (int i = 0; i < 2; i++) {
View Full Code Here

Examples of sc.math.Spline2D

                System.exit(0);
            }
        });
        setVisible(true);

        spline = new Spline2D(new BezierCurve());
        selected = -1;
        mouse = new Point();
        delta = new Point();

        // start with one randomly generated curve
View Full Code Here

Examples of toxi.geom.Spline2D

            List<Vec2D> points2d = new ArrayList<Vec2D>();
            points2d.add(new Vec2D());
            points2d.add(new Vec2D());
            points2d.add(new Vec2D());
            points2d.add(new Vec2D());
            test.spline2d = new Spline2D(points2d);
            List<Vec3D> points = new ArrayList<Vec3D>();
            points.add(new Vec3D());
            points.add(new Vec3D());
            points.add(new Vec3D());
            points.add(new Vec3D());
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.