public class AffineTransformationFactory extends Object
AffineTransformations defined by various kinds of
inputs and transformation mapping rules.| Constructor and Description |
|---|
AffineTransformationFactory() |
| Modifier and Type | Method and Description |
|---|---|
static AffineTransformation |
createFromBaseLines(Point src0,
Point src1,
Point dest0,
Point dest1)
Creates an AffineTransformation defined by a maping between two baselines.
|
static AffineTransformation |
createFromControlVectors(Point[] src,
Point[] dest)
Creates an AffineTransformation defined by a set of control vectors.
|
static AffineTransformation |
createFromControlVectors(Point src0,
Point dest0)
Creates an AffineTransformation defined by a single control vector.
|
static AffineTransformation |
createFromControlVectors(Point src0,
Point src1,
Point dest0,
Point dest1)
Creates an AffineTransformation defined by a pair of control vectors.
|
static AffineTransformation |
createFromControlVectors(Point src0,
Point src1,
Point src2,
Point dest0,
Point dest1,
Point dest2)
Creates a tranformation from a set of three control vectors.
|
public static AffineTransformation createFromBaseLines(Point src0, Point src1, Point dest0, Point 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 baselinepublic static AffineTransformation createFromControlVectors(Point src0, Point dest0)
src0 - the start point of the control vectordest0 - the end point of the control vectorpublic static AffineTransformation createFromControlVectors(Point src0, Point src1, Point dest0, Point dest1)
src0 - src1 - dest0 - dest1 - public static AffineTransformation createFromControlVectors(Point src0, Point src1, Point src2, Point dest0, Point dest1, Point dest2)
src0 - src1 - src2 - dest0 - dest1 - dest2 - public static AffineTransformation createFromControlVectors(Point[] src, Point[] 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
lengthsCopyright © 2015 Revolution Systems Inc.. All rights reserved.