Skip to content

m2x2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:707

Interface representing its WGSL matrix type counterpart: mat2x2f or mat2x2 A matrix with 2 rows and 2 columns, with elements of type d.f32

[n: number]: number

readonly [$internal]: true

Defined in: packages/typegpu/src/data/wgslTypes.ts:696

mat2x2.[$internal]


[iterator]: () => Iterator<number>

Defined in: packages/typegpu/src/data/wgslTypes.ts:42

Iterator<number>

mat2x2.[iterator]


readonly columns: readonly [v2f, v2f]

Defined in: packages/typegpu/src/data/wgslTypes.ts:699

mat2x2.columns


readonly kind: "mat2x2f"

Defined in: packages/typegpu/src/data/wgslTypes.ts:708

mat2x2.kind


readonly length: 4

Defined in: packages/typegpu/src/data/wgslTypes.ts:697

mat2x2.length

add(other): m2x2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:75

m2x2f

m2x2f

matInfixNotation.add


mul(other): m2x2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:79

number

m2x2f

matInfixNotation.mul

mul(other): v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:80

v2f

v2f

matInfixNotation.mul

mul(other): m2x2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:81

m2x2f

m2x2f

matInfixNotation.mul


sub(other): m2x2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:77

m2x2f

m2x2f

matInfixNotation.sub