m2x2f
Interface representing its WGSL matrix type counterpart: mat2x2f or mat2x2
Extends
Section titled “Extends”Indexable
Section titled “Indexable”[n: number]: number
Properties
Section titled “Properties”[$internal]
Section titled “[$internal]”
readonly[$internal]:true
Inherited from
Section titled “Inherited from”mat2x2.[$internal]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:485
[iterator]()
Section titled “[iterator]()”[iterator]: () =>
Iterator<number>
Returns
Section titled “Returns”Iterator<number>
Inherited from
Section titled “Inherited from”mat2x2.[iterator]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:49
columns
Section titled “columns”Inherited from
Section titled “Inherited from”mat2x2.columns
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:488
readonlykind:"mat2x2f"
Overrides
Section titled “Overrides”mat2x2.kind
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:497
length
Section titled “length”
readonlylength:4
Inherited from
Section titled “Inherited from”mat2x2.length
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:486
Methods
Section titled “Methods”[operatorMinus]()
Section titled “[operatorMinus]()”[operatorMinus](
lhs,rhs):m2x2f
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.[operatorMinus]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:87
[operatorPlus]()
Section titled “[operatorPlus]()”[operatorPlus](
lhs,rhs):m2x2f
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.[operatorPlus]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:86
[operatorStar]()
Section titled “[operatorStar]()”Call Signature
Section titled “Call Signature”[operatorStar](
lhs,rhs):m2x2f
Parameters
Section titled “Parameters”number | m2x2f
number | m2x2f
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.[operatorStar]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:88
Call Signature
Section titled “Call Signature”[operatorStar](
lhs,rhs):v2f
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.[operatorStar]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:89
Call Signature
Section titled “Call Signature”[operatorStar](
lhs,rhs):v2f
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.[operatorStar]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:90
add(
other):m2x2f
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.add
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:81
Call Signature
Section titled “Call Signature”mul(
other):m2x2f
Parameters
Section titled “Parameters”number | m2x2f
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.mul
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:83
Call Signature
Section titled “Call Signature”mul(
other):v2f
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.mul
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:84
sub(
other):m2x2f
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.sub