object AffineTransformationFactory
Supports creating {link AffineTransformation}s defined by various kinds of inputs and transformation mapping rules.
- Alphabetic
- By Inheritance
- AffineTransformationFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createFromBaseLines(src0: Coordinate, src1: Coordinate, dest0: Coordinate, dest1: Coordinate): AffineTransformation
Creates an AffineTransformation defined by a mapping between two baselines.
Creates an AffineTransformation defined by a mapping between two baselines. The computed transformation consists of:
- a translation from the start point of the source baseline to the start point of the destination baseline,
- a rotation through the angle between the baselines about the destination start point,
- and a scaling equal to the ratio of the baseline lengths.
If the source baseline has zero length, an identity transformation is returned.
- src0
the start point of the source baseline
- src1
the end point of the source baseline
- dest0
the start point of the destination baseline
- dest1
the end point of the destination baseline return the computed transformation
- def createFromControlVectors(src: Array[Coordinate], dest: Array[Coordinate]): AffineTransformation
Creates an AffineTransformation defined by a set of control vectors.
Creates an AffineTransformation defined by a set of control vectors. Between one and three vectors must be supplied.
- src
the source points of the vectors
- dest
the destination points of the vectors return the computed transformation throws IllegalArgumentException if the control vector arrays are too short, long or of different lengths
- def createFromControlVectors(src0: Coordinate, dest0: Coordinate): AffineTransformation
Creates an AffineTransformation defined by a single control vector.
Creates an AffineTransformation defined by a single control vector. A control vector consists of a source point and a destination point, which is the image of the source point under the desired transformation. This produces a translation.
- src0
the start point of the control vector
- dest0
the end point of the control vector return the computed transformation
- def createFromControlVectors(src0: Coordinate, src1: Coordinate, dest0: Coordinate, dest1: Coordinate): AffineTransformation
Creates an AffineTransformation defined by a pair of control vectors.
Creates an AffineTransformation defined by a pair of control vectors. A control vector consists of a source point and a destination point, which is the image of the source point under the desired transformation. The computed transformation is a combination of one or more of a uniform scale, a rotation, and a translation (i.e. there is no shear component and no reflection)
- dest1
return the computed transformation, or null if the control vectors do not determine a well-defined transformation
- def createFromControlVectors(src0: Coordinate, src1: Coordinate, src2: Coordinate, dest0: Coordinate, dest1: Coordinate, dest2: Coordinate): AffineTransformation
Creates a transformation from a set of three control vectors.
Creates a transformation from a set of three control vectors. A control vector consists of a source point and a destination point, which is the image of the source point under the desired transformation. Three control vectors allows defining a fully general affine transformation.
- dest2
return the computed transformation
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()