MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / mat4_mul

Function mat4_mul

native/shared/src/models.rs:527–535  ·  view source on GitHub ↗
(a: &[[f32; 4]; 4], b: &[[f32; 4]; 4])

Source from the content-addressed store, hash-verified

525}
526
527fn mat4_mul(a: &[[f32; 4]; 4], b: &[[f32; 4]; 4]) -> [[f32; 4]; 4] {
528 let mut out = [[0.0f32; 4]; 4];
529 for col in 0..4 {
530 for row in 0..4 {
531 out[col][row] = a[0][row]*b[col][0] + a[1][row]*b[col][1] + a[2][row]*b[col][2] + a[3][row]*b[col][3];
532 }
533 }
534 out
535}
536
537/// Walk the scene graph and collect EVERY world-space transform that
538/// references each mesh. Unlike `walk_scene_for_mesh_transforms` which

Callers 3

compute_joint_transformsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected