Debian Codegraph @

debian/missing-sources/glam-0.29.3/src/f32/float.rs

raw symbols SCIP
1 // Generated from float.rs.tera template. Edit the template, not the generated file.
2
3 use craterust-analyzer cargo glam 0.29.3 crate/::floatrust-analyzer cargo glam 0.29.3 float/::FloatExtrust-analyzer cargo glam 0.29.3 float/FloatExt#;
4
5 impl FloatExtrust-analyzer cargo glam 0.29.3 float/FloatExt# for f32 {
6 #[inline]
7 fn lerprust-analyzer cargo glam 0.29.3 f32/float/impl#[f32][FloatExt]lerp().(self, rhs: f32, t: f32) -> f32 {
8 self rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Add<Self>`]add().(rhs rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub().self) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Mul<Self>`]mul().t
9 }
10
11 #[inline]
12 fn inverse_lerprust-analyzer cargo glam 0.29.3 f32/float/impl#[f32][FloatExt]inverse_lerp().(a: f32, b: f32, v: f32) -> f32 {
13 (v rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub().a) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Div<Self>`]div().(b rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Sub<Self>`]sub().a)
14 }
15
16 #[inline]
17 fn remaprust-analyzer cargo glam 0.29.3 f32/float/impl#[f32][FloatExt]remap().(self, in_start: f32, in_end: f32, out_start: f32, out_end: f32) -> f32 {
18 let t = f32::inverse_lerprust-analyzer cargo glam 0.29.3 f32/float/impl#[f32][FloatExt]inverse_lerp().(in_start, in_end, self);
19 f32::lerprust-analyzer cargo glam 0.29.3 f32/float/impl#[f32][FloatExt]lerp().(out_start, out_end, t)
20 }
21 }