matBase
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
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:522
readonlykind:"mat4x4f"|"mat2x2f"|"mat3x3f"
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:523
Methods
Section titled “Methods”[operatorMinus]()
Section titled “[operatorMinus]()”[operatorMinus](
lhs,rhs):matBase
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:94
[operatorPlus]()
Section titled “[operatorPlus]()”[operatorPlus](
lhs,rhs):matBase
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:93
[operatorStar]()
Section titled “[operatorStar]()”Call Signature
Section titled “Call Signature”[operatorStar](
lhs,rhs):matBase
Parameters
Section titled “Parameters”number | matBase
number | matBase
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.[operatorStar]
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:95
Call Signature
Section titled “Call Signature”[operatorStar](
lhs,rhs):vecBase
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:96
Call Signature
Section titled “Call Signature”[operatorStar](
lhs,rhs):vecBase
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:97
add(
other):matBase
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:88
Call Signature
Section titled “Call Signature”mul(
other):matBase
Parameters
Section titled “Parameters”number | matBase
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.mul
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:90
Call Signature
Section titled “Call Signature”mul(
other):vecBase
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:91
sub(
other):matBase
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”matInfixNotation.sub