Properties
Readonly data
data: number[]
Methods
equals
- equals(mat: Mat3): boolean
-
Parameters
Returns boolean
equalsArray
- equalsArray(data: number[]): boolean
-
Parameters
Returns boolean
get
- get(x: number, y: number): number
-
Parameters
Returns number
set
- set(x: number, y: number, value: number): void
-
Parameters
-
x: number
-
y: number
-
value: number
Returns void
Static fromRotation
- fromRotation<T>(angle: number, out?: SimpleMat3): T
-
Type parameters
Parameters
Returns T
Static fromScale
- fromScale<T>(x: number, y: number, out?: SimpleMat3): T
-
Type parameters
Parameters
Returns T
Static fromTranslation
- fromTranslation<T>(x: number, y: number, out?: SimpleMat3): T
-
Type parameters
Parameters
Returns T
Static getTransformationMatrix
- getTransformationMatrix<T>(transitionX: number, transitionY: number, rotation: number, scaleX: number, scaleY: number, out?: SimpleMat3): T
-
Type parameters
Parameters
-
transitionX: number
-
transitionY: number
-
rotation: number
-
scaleX: number
-
scaleY: number
-
Returns T
Static rotate
-
Type parameters
Parameters
Returns T
Static scale
-
Type parameters
Parameters
Returns T
Static setIdentity
- setIdentity(data: number[]): number[]
-
Parameters
Returns number[]
Static Private setRotation
- setRotation(angle: number, data: number[]): number[]
-
Parameters
-
angle: number
-
data: number[]
Returns number[]
Static Private setScale
- setScale(x: number, y: number, data: number[]): number[]
-
Parameters
-
x: number
-
y: number
-
data: number[]
Returns number[]
Static Private setTranslation
- setTranslation(x: number, y: number, data: number[]): number[]
-
Parameters
-
x: number
-
y: number
-
data: number[]
Returns number[]
Static translate
-
Type parameters
Parameters
Returns T
00 03 06 01 04 07 02 05 08