Package org.graphstream.ui.geom

Examples of org.graphstream.ui.geom.Point2


      Vector3 oo = (Vector3) o;
      xyz[0] = oo.data[0];
      xyz[1] = oo.data[1];
      xyz[2] = oo.data[2];
    } else if(o instanceof Point2) {
      Point2 oo = (Point2) o;
      xyz[0] = oo.x;
      xyz[1] = oo.y;
      xyz[2] = 0;
    } else if(o instanceof Vector2) {
      Vector2 oo = (Vector2) o;
View Full Code Here


      Vector3 oo = (Vector3) o;
      pos.x = oo.data[0];
      pos.y = oo.data[1];
      pos.z = oo.data[2];
    } else if(o instanceof Point2) {
      Point2 oo = (Point2) o;
      pos.x = oo.x;
      pos.y = oo.y;
      pos.z = 0;
    } else if(o instanceof Vector2) {
      Vector2 oo = (Vector2) o;
View Full Code Here

        GraphicEdge edge = sprite.getEdgeAttachment();

        if (edge.isCurve()) {
            double ctrl[] = edge.getControlPoints();
            Point2 p0 = new Point2(edge.from.getX(), edge.from.getY());
            Point2 p1 = new Point2(ctrl[0], ctrl[1]);
            Point2 p2 = new Point2(ctrl[1], ctrl[2]);
            Point2 p3 = new Point2(edge.to.getX(), edge.to.getY());
            Vector2 perp = CubicCurve.perpendicular(p0, p1, p2, p3,
                sprite.getX());
            double y = metrics.lengthToGu(sprite.getY(), sprite.getUnits());

            perp.normalize();
View Full Code Here

TOP

Related Classes of org.graphstream.ui.geom.Point2

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.