Package com.google.code.appengine.awt.geom

Examples of com.google.code.appengine.awt.geom.Line2D.intersects()


  public boolean intersects(Rectangle2D r) {
    if(np==0)return false;
    Line2D line = new Line2D.Double(x[0],y[0],x[0],y[0]);
    for (int i = 1; i < np; i++) {
      line.setLine(x[i-1], y[i-1], x[i], y[i]);
      if(line.intersects(r))return true;
    }
    return false;
  }

  /**
 
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.