New to Kendo UI for Angular? Start a free 30-day trial
A utility class for building transformation matrices.
(matrix?: Matrix)
Creates a transformation from the specified matrix, if any.
Matrix
The initial transformation matrix.
|
|
|---|
|
Adds an observer to be notified for changes.
|
|
|
|
|
|
|
|---|
|
Creates a new instance with the same transformation matrix.
|
| Returns | |
|---|
Transformation
|
- A new Transformation instance with the same matrix.
|
|
|
|
|---|
|
Compares this transformation with another instance.
|
|
|
| Returns | |
|---|
boolean
|
true if the transformation matrix is the same. Otherwise, returns false.
|
|
|
|
|---|
|
Gets the current transformation matrix for this transformation.
|
| Returns | |
|---|
Matrix
|
- The current transformation matrix.
|
|
|
|
|---|
|
Multiplies the transformation by another one. The underlying transformation matrix is updated in-place.
|
| Parameters | | |
|---|
|
transformation
|
Transformation
|
The transformation to multiply by.
|
|
|
|
|
|
|---|
|
Returns the list of observers.
|
|
|
|
|
|---|
|
Stops notifying the specified observer for changes.
|
|
|
|
|
|
|
|---|
|
Resumes the notification to all observers for changes.
|
|
|
|
|
|---|
|
Sets the rotation with the specified parameters.
|
| Parameters | | |
|---|
|
angle
|
number
|
The angle of rotation in decimal degrees. Measured in a clockwise direction with 0 (zero) pointing "right". Negative values or values greater than 360 are normalized.
| |
center
|
number[] | Point
|
The center of rotation.
|
|
|
|
|
|
|---|
|
Sets scale with the specified parameters.
|
| Parameters | | |
|---|
|
scaleX
|
number
|
The scale factor on the X axis.
| |
scaleY
|
number
|
The scale factor on the Y axis.
| |
origin?
|
number[] | Point
|
The scale origin. Defaults to [0, 0].
|
|
|
|
|
|
|---|
|
Suspends the change notifications to all observers.
|
|
|
|
|
|---|
|
Sets the translation with the specified parameters.
|
| Parameters | | |
|---|
|
x
|
number
|
The distance to translate along the X axis.
| |
y
|
number
|
The distance to translate along the Y axis.
|
|
|
|