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

Method lerped

perro_source/core/perro_structs/src/structs/structs_3d/vector3.rs:317–319  ·  view source on GitHub ↗
(self, to: Self, t: f32)

Source from the content-addressed store, hash-verified

315 /// Returns an interpolated copy between this vector and `to`.
316 #[inline]
317 pub fn lerped(self, to: Self, t: f32) -> Self {
318 Self::from_glam(self.to_glam().lerp(to.to_glam(), t))
319 }
320
321 /// Linearly interpolates this vector toward `to` in place.
322 #[inline]

Callers 6

bench_vector2_bulk_opsFunction · 0.45
bench_vector3_bulk_opsFunction · 0.45
lerpMethod · 0.45
slerpedMethod · 0.45

Calls 2

lerpMethod · 0.45
to_glamMethod · 0.45

Tested by

no test coverage detected