MCPcopy Create free account
hub / github.com/ByteArena/box2d / B2Mat22MulT

Function B2Mat22MulT

CommonB2Math.go:592–604  ·  view source on GitHub ↗

A^T * B

(A, B B2Mat22)

Source from the content-addressed store, hash-verified

590
591// A^T * B
592func B2Mat22MulT(A, B B2Mat22) B2Mat22 {
593 c1 := MakeB2Vec2(
594 B2Vec2Dot(A.Ex, B.Ex),
595 B2Vec2Dot(A.Ey, B.Ex),
596 )
597
598 c2 := MakeB2Vec2(
599 B2Vec2Dot(A.Ex, B.Ey),
600 B2Vec2Dot(A.Ey, B.Ey),
601 )
602
603 return MakeB2Mat22FromColumns(c1, c2)
604}
605
606/// Multiply a matrix times a vector.
607func B2Vec3Mat33Mul(A B2Mat33, v B2Vec3) B2Vec3 {

Callers

nothing calls this directly

Calls 3

MakeB2Vec2Function · 0.85
B2Vec2DotFunction · 0.85
MakeB2Mat22FromColumnsFunction · 0.85

Tested by

no test coverage detected