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

Function dot3

tools/imposter-baker/src/render.rs:452–452  ·  view source on GitHub ↗
(a: [f32; 3], b: [f32; 3])

Source from the content-addressed store, hash-verified

450 [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]]
451}
452fn dot3(a: [f32; 3], b: [f32; 3]) -> f32 { a[0]*b[0] + a[1]*b[1] + a[2]*b[2] }
453
454fn look_at_rh(eye: [f32; 3], target: [f32; 3], up: [f32; 3]) -> [[f32; 4]; 4] {
455 let f = normalize3([target[0] - eye[0], target[1] - eye[1], target[2] - eye[2]]);

Callers 1

look_at_rhFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected