matBase
Defined in: packages/typegpu/src/data/wgslTypes.ts:517
A type which every matrix is assignable to. In most cases the union m2x2f | m3x3f | m4x4f is preferred, but when an implementation uses overloaded operators and is generic on the type, this makes the type checking much more laid back.
Extends
Section titled “Extends”matInfixNotation<matBase>
Properties
Section titled “Properties”[$internal]
Section titled “[$internal]”
readonly[$internal]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:518
readonlykind:"mat2x2f"|"mat3x3f"|"mat4x4f"
Defined in: packages/typegpu/src/data/wgslTypes.ts:519
Methods
Section titled “Methods”[operatorMinus]()
Section titled “[operatorMinus]()”[operatorMinus](
lhs,rhs):matBase
Defined in: packages/typegpu/src/data/wgslTypes.ts:121
Parameters
Section titled “Parameters”matBase
matBase
Returns
Section titled “Returns”matBase
Inherited from
Section titled “Inherited from”matInfixNotation.[operatorMinus]
[operatorPlus]()
Section titled “[operatorPlus]()”[operatorPlus](
lhs,rhs):matBase
Defined in: packages/typegpu/src/data/wgslTypes.ts:120
Parameters
Section titled “Parameters”matBase
matBase
Returns
Section titled “Returns”matBase
Inherited from
Section titled “Inherited from”matInfixNotation.[operatorPlus]
[operatorStar]()
Section titled “[operatorStar]()”Call Signature
Section titled “Call Signature”[operatorStar](
lhs,rhs):matBase
Defined in: packages/typegpu/src/data/wgslTypes.ts:122
Parameters
Section titled “Parameters”number | matBase
number | matBase
Returns
Section titled “Returns”matBase
Inherited from
Section titled “Inherited from”matInfixNotation.[operatorStar]
Call Signature
Section titled “Call Signature”[operatorStar](
lhs,rhs):vecBase
Defined in: packages/typegpu/src/data/wgslTypes.ts:123
Parameters
Section titled “Parameters”matBase
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.[operatorStar]
Call Signature
Section titled “Call Signature”[operatorStar](
lhs,rhs):vecBase
Defined in: packages/typegpu/src/data/wgslTypes.ts:124
Parameters
Section titled “Parameters”matBase
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.[operatorStar]
add(
other):matBase
Defined in: packages/typegpu/src/data/wgslTypes.ts:115
Parameters
Section titled “Parameters”matBase
Returns
Section titled “Returns”matBase
Inherited from
Section titled “Inherited from”matInfixNotation.add
Call Signature
Section titled “Call Signature”mul(
other):matBase
Defined in: packages/typegpu/src/data/wgslTypes.ts:117
Parameters
Section titled “Parameters”number | matBase
Returns
Section titled “Returns”matBase
Inherited from
Section titled “Inherited from”matInfixNotation.mul
Call Signature
Section titled “Call Signature”mul(
other):vecBase
Defined in: packages/typegpu/src/data/wgslTypes.ts:118
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.mul
sub(
other):matBase
Defined in: packages/typegpu/src/data/wgslTypes.ts:116
Parameters
Section titled “Parameters”matBase
Returns
Section titled “Returns”matBase
Inherited from
Section titled “Inherited from”matInfixNotation.sub