org.starhope.appius.physica
Class Circle

java.lang.Object
  extended by org.starhope.appius.physica.Circle

 class Circle
extends Object

Circle class. Circles are fundamental to computation of Delaunay triangulations. In particular, an operation which computes a circle defined by three points is required.


Field Summary
(package private)  Point2D.Double centre
          WRITEME: Document this brpocock@star-hope.org
(package private)  double radius
          WRITEME: Document this brpocock@star-hope.org
 
Constructor Summary
Circle()
          WRITEME
Circle(Point2D.Double newCentre, double newRadius)
           
 
Method Summary
 boolean contains(Point2D.Double p)
          Tests if a point lies inside the circle instance.
 void findCircumcircle(Point2D.Double p1, Point2D.Double p2, Point2D.Double p3)
          Compute the circle defined by three points (circumcircle).
 Point2D.Double getCentre()
           
 double getRadius()
           
 void set(Point2D.Double c, double r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

centre

Point2D.Double centre
WRITEME: Document this brpocock@star-hope.org


radius

double radius
WRITEME: Document this brpocock@star-hope.org

Constructor Detail

Circle

Circle()
WRITEME


Circle

Circle(Point2D.Double newCentre,
       double newRadius)
Parameters:
newCentre - WRITEME
newRadius - WRITEME
Method Detail

contains

public boolean contains(Point2D.Double p)
Tests if a point lies inside the circle instance.

Parameters:
p - WRITEME
Returns:
WRITEME

findCircumcircle

public void findCircumcircle(Point2D.Double p1,
                             Point2D.Double p2,
                             Point2D.Double p3)
Compute the circle defined by three points (circumcircle).

Parameters:
p1 - WRITEME
p2 - WRITEME
p3 - WRITEME

getCentre

public Point2D.Double getCentre()
Returns:
WRITEME

getRadius

public double getRadius()
Returns:
radius

set

public void set(Point2D.Double c,
                double r)
Parameters:
c - WRITEME
r - WRITEME