Skip to content

m2x2f

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

mat2x2.[$internal]

packages/typegpu/src/data/wgslTypes.ts:704


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

Iterator<number>

mat2x2.[iterator]

packages/typegpu/src/data/wgslTypes.ts:49


readonly columns: readonly [v2f, v2f]

mat2x2.columns

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


readonly kind: "mat2x2f"

mat2x2.kind

packages/typegpu/src/data/wgslTypes.ts:716


readonly length: 4

mat2x2.length

packages/typegpu/src/data/wgslTypes.ts:705

add(other): m2x2f

m2x2f

m2x2f

matInfixNotation.add

packages/typegpu/src/data/wgslTypes.ts:82


mul(other): m2x2f

number

m2x2f

matInfixNotation.mul

packages/typegpu/src/data/wgslTypes.ts:86

mul(other): v2f

v2f

v2f

matInfixNotation.mul

packages/typegpu/src/data/wgslTypes.ts:87

mul(other): m2x2f

m2x2f

m2x2f

matInfixNotation.mul

packages/typegpu/src/data/wgslTypes.ts:88


sub(other): m2x2f

m2x2f

m2x2f

matInfixNotation.sub

packages/typegpu/src/data/wgslTypes.ts:84