Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct AffineMatrix

sealed struct AffineMatrix
An affine matrix is used to rotate, scale, translate, or skew the objects you draw in a graphics context. change name to AffineMatrix Affine transforms are represented by a 2 by 3 matrix: Because the third column is always (0,0,1), the affine matrix contains values for only the first two columns. Matrix representation. { ScaleX, SkewX, TransX, SkewY, ScaleY, TransY, }

Fields

Constants

ScaleX

u8 = 0

SkewX

u8 = 1

TransX

u8 = 2

SkewY

u8 = 3

ScaleY

u8 = 4

TransY

u8 = 5

IDENTITY

AffineMatrix = {{1, 0, 0, 0, 1, 0}}
Last modified on October 29, 2026