SVG to Compose Documentation
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
SVG to Compose Documentation
svg-to-compose
/
dev.tonholo.s2c.geom
/
AffineTransformation
Affine
Transformation
@
Serializable
(
with
=
AffineTransformationSerializer::class
)
sealed
class
AffineTransformation
(
matrix
:
DoubleArray
)
(
source
)
Inheritors
Matrix
Identity
Translate
Rotate
Scale
SkewX
SkewY
Members
Constructors
Affine
Transformation
Link copied to clipboard
protected
constructor
(
vararg
matrix
:
DoubleArray
)
Types
Identity
Link copied to clipboard
data
object
Identity
:
AffineTransformation
Matrix
Link copied to clipboard
class
Matrix
(
matrix
:
DoubleArray
)
:
AffineTransformation
Rotate
Link copied to clipboard
data
class
Rotate
(
val
angle
:
Double
,
val
centerX
:
Double
=
0.0
,
val
centerY
:
Double
=
0.0
)
:
AffineTransformation
Scale
Link copied to clipboard
data
class
Scale
(
val
sx
:
Double
,
val
sy
:
Double
=
sx
)
:
AffineTransformation
Skew
X
Link copied to clipboard
data
class
SkewX
(
val
angle
:
Double
)
:
AffineTransformation
Skew
Y
Link copied to clipboard
data
class
SkewY
(
val
angle
:
Double
)
:
AffineTransformation
Translate
Link copied to clipboard
data
class
Translate
(
val
tx
:
Double
,
val
ty
:
Double
)
:
AffineTransformation
Properties
matrix
Link copied to clipboard
val
matrix
:
Array
<
out
DoubleArray
>
Functions
times
Link copied to clipboard
operator
fun
times
(
other
:
AffineTransformation
)
:
AffineTransformation