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:485


[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:488


readonly kind: "mat2x2f"

mat2x2.kind

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


readonly length: 4

mat2x2.length

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

[operatorMinus](lhs, rhs): m2x2f

m2x2f

m2x2f

m2x2f

matInfixNotation.[operatorMinus]

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


[operatorPlus](lhs, rhs): m2x2f

m2x2f

m2x2f

m2x2f

matInfixNotation.[operatorPlus]

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


[operatorStar](lhs, rhs): m2x2f

number | m2x2f

number | m2x2f

m2x2f

matInfixNotation.[operatorStar]

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

[operatorStar](lhs, rhs): v2f

m2x2f

v2f

v2f

matInfixNotation.[operatorStar]

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

[operatorStar](lhs, rhs): v2f

v2f

m2x2f

v2f

matInfixNotation.[operatorStar]

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


add(other): m2x2f

m2x2f

m2x2f

matInfixNotation.add

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


mul(other): m2x2f

number | m2x2f

m2x2f

matInfixNotation.mul

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

mul(other): v2f

v2f

v2f

matInfixNotation.mul

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


sub(other): m2x2f

m2x2f

m2x2f

matInfixNotation.sub

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