nl.tudelft.simulation.language.d2
Class Circle

java.lang.Object
  extended bynl.tudelft.simulation.language.d2.Circle

public final class Circle
extends java.lang.Object


(c) copyright 2003-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Version:
Jun 13, 2004
Author:
Alexander Verbraeck

Method Summary
static java.awt.geom.Point2D[] intersection(java.awt.geom.Point2D center0, double radius0, java.awt.geom.Point2D center1, double radius1)
          Elegant intersection algorithm from http://astronomy.swin.edu.au/~pbourke/geometry/2circle/
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

intersection

public static java.awt.geom.Point2D[] intersection(java.awt.geom.Point2D center0,
                                                   double radius0,
                                                   java.awt.geom.Point2D center1,
                                                   double radius1)
Elegant intersection algorithm from http://astronomy.swin.edu.au/~pbourke/geometry/2circle/

Parameters:
center0 - the center of the first circle
radius0 - the radius of the first circle
center1 - the center of the second circle
radius1 - the radius of the second circle
Returns:
the intersection


Copyright © 2002-2004 Delft University of Technology, the Netherlands. All Rights Reserved.