private static class Line.LineTransform extends java.lang.Object implements Transform<Euclidean2D,Euclidean1D>
This class is used in order to apply an affine transform to a line. Using a specific object allow to perform some computations on the transform only once even if the same transform is to be applied to a large number of lines (for example to a large polygon)./
Modifier and Type | Field and Description |
---|---|
private double |
c11 |
private double |
c1X |
private double |
c1Y |
private double |
cX1 |
private double |
cXX |
private double |
cXY |
private double |
cY1 |
private double |
cYX |
private double |
cYY |
Constructor and Description |
---|
LineTransform(java.awt.geom.AffineTransform transform)
Build an affine line transform from a n
AffineTransform . |
Modifier and Type | Method and Description |
---|---|
Line |
apply(Hyperplane<Euclidean2D> hyperplane)
Transform an hyperplane of a space.
|
Vector2D |
apply(Point<Euclidean2D> point)
Transform a point of a space.
|
SubHyperplane<Euclidean1D> |
apply(SubHyperplane<Euclidean1D> sub,
Hyperplane<Euclidean2D> original,
Hyperplane<Euclidean2D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
private double cXX
private double cXY
private double cX1
private double cYX
private double cYY
private double cY1
private double c1Y
private double c1X
private double c11
public LineTransform(java.awt.geom.AffineTransform transform) throws MathIllegalArgumentException
AffineTransform
.transform
- transform to use (must be invertible otherwise
the apply(Hyperplane)
method would work
only for some lines, and fail for other ones)MathIllegalArgumentException
- if the transform is non invertiblepublic Vector2D apply(Point<Euclidean2D> point)
apply
in interface Transform<Euclidean2D,Euclidean1D>
point
- point to transformpublic Line apply(Hyperplane<Euclidean2D> hyperplane)
apply
in interface Transform<Euclidean2D,Euclidean1D>
hyperplane
- hyperplane to transformpublic SubHyperplane<Euclidean1D> apply(SubHyperplane<Euclidean1D> sub, Hyperplane<Euclidean2D> original, Hyperplane<Euclidean2D> transformed)
apply
in interface Transform<Euclidean2D,Euclidean1D>
sub
- sub-hyperplane to transformoriginal
- hyperplane in which the sub-hyperplane is
defined (this is the original hyperplane, the transform has
not been applied to it)transformed
- hyperplane in which the sub-hyperplane is
defined (this is the transformed hyperplane, the transform
has been applied to it)Copyright (c) 2003-2016 Apache Software Foundation