math.geom2d.transform
Class CircleInversion2D

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

public class CircleInversion2D
extends java.lang.Object
implements Bijection2D

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


Constructor Summary
CircleInversion2D()
          Construct a new circle inversion based on the unit circle centered on the origin.
CircleInversion2D(Circle2D circle)
           
CircleInversion2D(double xc, double yc, double radius)
           
CircleInversion2D(Point2D center, double radius)
           
 
Method Summary
 Point2D center()
           
static CircleInversion2D create(Circle2D circle)
           
static CircleInversion2D create(Point2D center, double radius)
           
 CircleInversion2D invert()
          Returns this circle inversion.
 double radius()
           
 Point2D transform(Point2D pt)
          Transforms a point
 Point2D[] transform(Point2D[] src, Point2D[] dst)
          Transforms an array of points, and returns the transformed points.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleInversion2D

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


CircleInversion2D

public CircleInversion2D(Circle2D circle)

CircleInversion2D

public CircleInversion2D(Point2D center,
                         double radius)

CircleInversion2D

public CircleInversion2D(double xc,
                         double yc,
                         double radius)
Method Detail

create

public static CircleInversion2D create(Point2D center,
                                       double radius)

create

public static CircleInversion2D create(Circle2D circle)

center

public Point2D center()

radius

public double radius()

invert

public CircleInversion2D invert()
Returns this circle inversion.

Specified by:
invert in interface Bijection2D

transform

public Point2D transform(Point2D pt)
Description copied from interface: Transform2D
Transforms a point

Specified by:
transform in interface Transform2D

transform

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

Specified by:
transform in interface Transform2D