Examples of findPoints()


Examples of net.sf.latexdraw.glib.models.interfaces.shape.ILine.findPoints()

    else {
      final double b = pt.getY() - line.getA()*pt.getX();
      line.setLine(pt.getX(), pt.getY(), pt.getX()+10, line.getA()*(pt.getX()+10) + b);
    }

    return line.findPoints(pt, DEFAULT_BALANCE_GAP);
  }


  /**
   * Method used by the balance method. Just sets the given control points at the given position.
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.ILine.findPoints()

                        pt1 = l.getIntersection(l2);
                        final double distance = Point2D.distance(cg.getX(), cg.getY(), pt1.getX(), pt1.getY());
                        l.setX1(pt1.getX());
                        l.setY1(pt1.getY());
                        final IPoint[] pts = l.findPoints(pt1, 2 * distance * gradMidPt);
                        pt2 = pts[0];

                        if (gradMidPt < 0.5)
                            pt1 = pt1.rotatePoint(shape.getGravityCentre(), Math.PI);
                    }
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.ILine.findPoints()

    if(arr.getArrowStyle().isReducingShape()) {
      final ILine line = arr.getArrowLine();

      if(line!=null) {
        final IPoint[] ps = line.findPoints(line.getPoint1(), arr.getArrowShapeLength()/2.);
        if(ps!=null) {
          if(line.isInSegment(ps[0])) {
            coords[0] = ps[0].getX();
            coords[1] = ps[0].getY();
          }else {
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.