public class AffineTransformationFactory extends Object
AffineTransformation
s defined by various kinds of
inputs and transformation mapping rules.Constructor and Description |
---|
AffineTransformationFactory() |
Modifier and Type | Method and Description |
---|---|
static AffineTransformation |
createFromBaseLines(Coordinate src0,
Coordinate src1,
Coordinate dest0,
Coordinate dest1)
Creates an AffineTransformation defined by a mapping between two baselines.
|
static AffineTransformation |
createFromControlVectors(Coordinate[] src,
Coordinate[] dest)
Creates an AffineTransformation defined by a set of control vectors.
|
static AffineTransformation |
createFromControlVectors(Coordinate src0,
Coordinate dest0)
Creates an AffineTransformation defined by a single control vector.
|
static AffineTransformation |
createFromControlVectors(Coordinate src0,
Coordinate src1,
Coordinate dest0,
Coordinate dest1)
Creates an AffineTransformation defined by a pair of control vectors.
|
static AffineTransformation |
createFromControlVectors(Coordinate src0,
Coordinate src1,
Coordinate src2,
Coordinate dest0,
Coordinate dest1,
Coordinate dest2)
Creates a transformation from a set of three control vectors.
|
public static AffineTransformation createFromControlVectors(Coordinate src0, Coordinate src1, Coordinate src2, Coordinate dest0, Coordinate dest1, Coordinate dest2)
src0
- src1
- src2
- dest0
- dest1
- dest2
- public static AffineTransformation createFromControlVectors(Coordinate src0, Coordinate src1, Coordinate dest0, Coordinate dest1)
src0
- src1
- dest0
- dest1
- public static AffineTransformation createFromControlVectors(Coordinate src0, Coordinate dest0)
src0
- the start point of the control vectordest0
- the end point of the control vectorpublic static AffineTransformation createFromControlVectors(Coordinate[] src, Coordinate[] dest)
src
- the source points of the vectorsdest
- the destination points of the vectorsIllegalArgumentException
- if the control vector arrays are too short, long or of different
lengthspublic static AffineTransformation createFromBaseLines(Coordinate src0, Coordinate src1, Coordinate dest0, Coordinate dest1)
src0
- the start point of the source baselinesrc1
- the end point of the source baselinedest0
- the start point of the destination baselinedest1
- the end point of the destination baselineCopyright © 2022. All rights reserved.