math.geom2d.transform
Class CircleInversion2D

Package class diagram package CircleInversion2D
java.lang.Object
  extended by math.geom2d.transform.CircleInversion2D
All Implemented Interfaces:
Transform2D

public class CircleInversion2D
extends 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
 Point2D getCenter()
           
 double getRadius()
           
 void setCircle(Circle2D circle)
           
 void setCircle(double xc, double yc, double r)
           
 Point2D transform(Point2D pt)
          Transforms a point
 Point2D[] transform(Point2D[] src, Point2D[] dst)
          Transforms an array of points, and returns the transformed points.
 Shape2D transform(Shape2D shape)
          Deprecated. use transformShape() instead (0.7.0)
 Point2D transformPoint(Point2D pt)
           
 BoundaryPolyCurve2D<CircleArc2D> transformRing(LinearRing2D ring)
           
 Shape2D transformShape(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

getCenter

public Point2D getCenter()

getRadius

public double getRadius()

setCircle

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

setCircle

public void setCircle(Circle2D circle)

transformShape

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

Transformed shape can be computed for different cases:


transform

@Deprecated
public Shape2D transform(Shape2D shape)
Deprecated. use transformShape() instead (0.7.0)


transformPoint

public Point2D transformPoint(Point2D pt)

transformRing

public BoundaryPolyCurve2D<CircleArc2D> transformRing(LinearRing2D ring)

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


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.