math.geom2d.transform
Class CircleInversion2D

java.lang.Object
  extended by math.geom2d.transform.CircleInversion2D
All Implemented Interfaces:
Transform2D

public class CircleInversion2D
extends java.lang.Object
implements Transform2D

circle inversion : performs a bijection between points outside the circle and points inside the circle.


Field Summary
protected  Circle2D circle
           
 
Constructor Summary
CircleInversion2D()
          Construct a new circle inversion based on the unit circle centered on the origin.
CircleInversion2D(Circle2D circle)
           
 
Method Summary
 void setCircle(Circle2D circle)
           
 void setCircle(double xc, double yc, double r)
           
 Point2D transform(java.awt.geom.Point2D pt)
          Transforms a point
 Point2D[] transform(java.awt.geom.Point2D[] src, Point2D[] dst)
          Transforms an array of points, and returns the transformed points.
 Point2D transform(java.awt.geom.Point2D pt, Point2D dst)
          Transforms a point, share memory
 Shape2D transform(Shape2D shape)
          Transforms a general shape, and return the transformed shape.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

circle

protected Circle2D circle
Constructor Detail

CircleInversion2D

public CircleInversion2D()
Construct a new circle inversion based on the unit circle centered on the origin.


CircleInversion2D

public CircleInversion2D(Circle2D circle)
Method Detail

setCircle

public void setCircle(double xc,
                      double yc,
                      double r)

setCircle

public void setCircle(Circle2D circle)

transform

public Shape2D transform(Shape2D shape)
Transforms a general shape, and return the transformed shape.

Transformed shape can be computed for different cases:


transform

public Point2D transform(java.awt.geom.Point2D pt)
Description copied from interface: Transform2D
Transforms a point

Specified by:
transform in interface Transform2D

transform

public Point2D transform(java.awt.geom.Point2D pt,
                         Point2D dst)
Description copied from interface: Transform2D
Transforms a point, share memory

Specified by:
transform in interface Transform2D

transform

public Point2D[] transform(java.awt.geom.Point2D[] src,
                           Point2D[] dst)
Transforms an array of points, and returns the transformed points.

Specified by:
transform in interface Transform2D