type
Transform
@Js
@Serializable { simple=true }
const class Transform : Obj
Transform models an affine transformation matrix:
|a c e| |b d f| |0 0 1|
constructors
fields
methods
| equals |
Equality is based on string format |
|---|---|
| hash |
Hash code is based on string format |
| mult |
Multiply this matrix by given matrix and return result as new instance |
| rotate |
Rotate angle in degrees |
| scale |
Scale transform |
| skewX |
Skew x by angle in degrees |
| skewY |
Skew y by angle in degrees |
| toStr |
Return in |
| translate |
Translate transform |
Slot Details
a
const Float a
b
const Float b
c
const Float c
d
const Float d
defVal
const static Transform defVal := ...
Default instance is no transform.
e
const Float e
equals
f
const Float f
fromStr
hash
virtual override Int hash()
Hash code is based on string format
make
mult
rotate
scale
skewX
skewY
toStr
virtual override Str toStr()
Return in matrix(<a> <b> <c> <d> <e> <f>) format