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

Function cross

native/shared/src/picking.rs:257–263  ·  view source on GitHub ↗
(a: &[f32; 3], b: &[f32; 3])

Source from the content-addressed store, hash-verified

255}
256
257fn cross(a: &[f32; 3], b: &[f32; 3]) -> [f32; 3] {
258 [
259 a[1]*b[2] - a[2]*b[1],
260 a[2]*b[0] - a[0]*b[2],
261 a[0]*b[1] - a[1]*b[0],
262 ]
263}
264
265fn dot(a: &[f32; 3], b: &[f32; 3]) -> f32 {
266 a[0]*b[0] + a[1]*b[1] + a[2]*b[2]

Callers 3

update_uniformsMethod · 0.50
compute_triangle_normalFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected