|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.geometry.euclidean.twod.Line.LineTransform
private static class Line.LineTransform
Class embedding an affine transform.
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)./
Field Summary | |
---|---|
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 Summary | |
---|---|
Line.LineTransform(AffineTransform transform)
Build an affine line transform from a n AffineTransform . |
Method Summary | |
---|---|
Line |
apply(Hyperplane<Euclidean2D> hyperplane)
Transform an hyperplane of a space. |
SubHyperplane<Euclidean1D> |
apply(SubHyperplane<Euclidean1D> sub,
Hyperplane<Euclidean2D> original,
Hyperplane<Euclidean2D> transformed)
Transform a sub-hyperplane embedded in an hyperplane. |
Vector2D |
apply(Vector<Euclidean2D> point)
Transform a point of a space. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public Line.LineTransform(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 invertibleMethod Detail |
---|
public Vector2D apply(Vector<Euclidean2D> point)
apply
in interface Transform<Euclidean2D,Euclidean1D>
point
- point to transform
public Line apply(Hyperplane<Euclidean2D> hyperplane)
apply
in interface Transform<Euclidean2D,Euclidean1D>
hyperplane
- hyperplane to transform
public 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |