public class CircleInversion2D extends Object implements Transform2D
Constructor and Description |
---|
CircleInversion2D()
Construct a new circle inversion based on the unit circle centered on the
origin.
|
CircleInversion2D(Circle2D circle) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected Circle2D circle
public CircleInversion2D()
public CircleInversion2D(Circle2D circle)
public Point2D getCenter()
public double getRadius()
public void setCircle(double xc, double yc, double r)
public void setCircle(Circle2D circle)
public Shape2D transformShape(Shape2D shape)
Transformed shape can be computed for different cases:
@Deprecated public Shape2D transform(Shape2D shape)
public BoundaryPolyCurve2D<CircleArc2D> transformRing(LinearRing2D ring)
public Point2D transform(Point2D pt)
Transform2D
transform
in interface Transform2D
public Point2D[] transform(Point2D[] src, Point2D[] dst)
transform
in interface Transform2D
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.