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

Function cross

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

Source from the content-addressed store, hash-verified

447 [v[0] / l, v[1] / l, v[2] / l]
448}
449fn cross(a: [f32; 3], b: [f32; 3]) -> [f32; 3] {
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] {

Callers 1

look_at_rhFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected