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

Function lerp_vec3

native/shared/src/models.rs:661–667  ·  view source on GitHub ↗
(a: &[f32; 3], b: &[f32; 3], t: f32)

Source from the content-addressed store, hash-verified

659}
660
661fn lerp_vec3(a: &[f32; 3], b: &[f32; 3], t: f32) -> [f32; 3] {
662 [
663 a[0] + t * (b[0] - a[0]),
664 a[1] + t * (b[1] - a[1]),
665 a[2] + t * (b[2] - a[2]),
666 ]
667}
668
669fn find_keyframe_pair(timestamps: &[f32], time: f32) -> (usize, usize, f32) {
670 if timestamps.len() <= 1 {

Callers 1

sample_vec3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected