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
cXX * cYY - cYX * cXY.
|
private double |
c1X
cXX * cY1 - cYX * cX1.
|
private double |
c1Y
cXY * cY1 - cYY * cX1.
|
private double |
cX1
Transform addendum for output abscissa.
|
private double |
cXX
Transform factor between input abscissa and output abscissa.
|
private double |
cXY
Transform factor between input ordinate and output abscissa.
|
private double |
cY1
Transform addendum for output ordinate.
|
private double |
cYX
Transform factor between input abscissa and output ordinate.
|
private double |
cYY
Transform factor between input ordinate and output ordinate.
|
| Constructor and Description |
|---|
Line.LineTransform(double cXX,
double cYX,
double cXY,
double cYY,
double cX1,
double cY1)
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 cYX
private double cXY
private double cYY
private double cX1
private double cY1
private double c1Y
private double c1X
private double c11
Line.LineTransform(double cXX,
double cYX,
double cXY,
double cYY,
double cX1,
double cY1)
throws MathIllegalArgumentException
AffineTransform.cXX - transform factor between input abscissa and output abscissacYX - transform factor between input abscissa and output ordinatecXY - transform factor between input ordinate and output abscissacYY - transform factor between input ordinate and output ordinatecX1 - transform addendum for output abscissacY1 - transform addendum for output ordinateMathIllegalArgumentException - 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-2017 Apache Software Foundation