MCPcopy Create free account
hub / github.com/PerroEngine/Perro / cross3

Function cross3

perro_source/core/perro_builtin_meshes/src/lib.rs:524–530  ·  view source on GitHub ↗
(a: [f32; 3], b: [f32; 3])

Source from the content-addressed store, hash-verified

522
523#[inline]
524fn cross3(a: [f32; 3], b: [f32; 3]) -> [f32; 3] {
525 [
526 a[1] * b[2] - a[2] * b[1],
527 a[2] * b[0] - a[0] * b[2],
528 a[0] * b[1] - a[1] * b[0],
529 ]
530}
531
532#[inline]
533fn dot3(a: [f32; 3], b: [f32; 3]) -> f32 {

Callers 2

push_triangleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected