jdsl.geomobj.ref
Class AbstractCircle2D

java.lang.Object
  |
  +--jdsl.geomobj.ref.AbstractGeomObject2D
        |
        +--jdsl.geomobj.ref.AbstractCircle2D
All Implemented Interfaces:
Circle2D, ClosedCurve2D, Curve2D, GeomObject, GeomObject2D
Direct Known Subclasses:
IntCircle2D, RatCircle2D

public abstract class AbstractCircle2D
extends AbstractGeomObject2D
implements Circle2D

An abstract class extended by IntCircle2D and RatCircle2D.

Version:
$Id: AbstractCircle2D.java,v 1.3 2000/03/23 14:14:28 lv Exp $
Author:
Masi Oka (mao), Luca Vismara (lv)

Inner classes inherited from class jdsl.geomobj.api.GeomObject2D
GeomObject2D.NoneGeomObject2D
 
Field Summary
protected  double approxSqRadius_
           
protected  boolean approxSqRadius_computed_
           
protected  Point2D center_
           
protected  long sqRadius_
           
protected  boolean sqRadius_computed_
           
protected  java.lang.Number sqRadius_denom_
           
protected  java.lang.Number sqRadius_num_
           
 
Fields inherited from class jdsl.geomobj.ref.AbstractGeomObject2D
gt, jn
 
Fields inherited from interface jdsl.geomobj.api.GeomObject2D
NONE
 
Constructor Summary
AbstractCircle2D()
           
 
Method Summary
 Point2D center()
           
protected abstract  void computeCenter()
           
protected abstract  void computeSqRadius()
           
 double squaredRadius()
          This approximate method is provided for visualization purposes only; computations should be performed through methods of GeomTester2D.
 
Methods inherited from class jdsl.geomobj.ref.AbstractGeomObject2D
dim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jdsl.geomobj.api.ClosedCurve2D
points
 
Methods inherited from interface jdsl.geomobj.api.GeomObject
arithmeticType, dim
 

Field Detail

center_

protected Point2D center_

sqRadius_

protected long sqRadius_

sqRadius_num_

protected java.lang.Number sqRadius_num_

sqRadius_denom_

protected java.lang.Number sqRadius_denom_

sqRadius_computed_

protected boolean sqRadius_computed_

approxSqRadius_

protected double approxSqRadius_

approxSqRadius_computed_

protected boolean approxSqRadius_computed_
Constructor Detail

AbstractCircle2D

public AbstractCircle2D()
Method Detail

center

public Point2D center()
Specified by:
center in interface Circle2D
Following copied from interface: jdsl.geomobj.api.Circle2D
Returns:
the center of this

squaredRadius

public double squaredRadius()
Description copied from interface: Circle2D
This approximate method is provided for visualization purposes only; computations should be performed through methods of GeomTester2D.
Specified by:
squaredRadius in interface Circle2D
Following copied from interface: jdsl.geomobj.api.Circle2D
Returns:
a double approximation of the square of the radius of this

computeCenter

protected abstract void computeCenter()

computeSqRadius

protected abstract void computeSqRadius()