Debian Codegraph @

debian/missing-sources/glam-0.27.0/src/f64/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.27.0 crate/::floatrust-analyzer cargo glam 0.27.0 float/::FloatExtrust-analyzer cargo glam 0.27.0 float/FloatExt#;
4
5 impl FloatExtrust-analyzer cargo glam 0.27.0 float/FloatExt# for f64 {
6 #[inline]
7 fn lerprust-analyzer cargo glam 0.27.0 f64/float/impl#[f64][FloatExt]lerp().(self, rhs: f64, t: f64) -> f64 {
8 self rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().self) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().t
9 }
10
11 #[inline]
12 fn inverse_lerprust-analyzer cargo glam 0.27.0 f64/float/impl#[f64][FloatExt]inverse_lerp().(a: f64, b: f64, v: f64) -> f64 {
13 (v rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().a) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(b rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().a)
14 }
15
16 #[inline]
17 fn remaprust-analyzer cargo glam 0.27.0 f64/float/impl#[f64][FloatExt]remap().(self, in_start: f64, in_end: f64, out_start: f64, out_end: f64) -> f64 {
18 let t = f64::inverse_lerprust-analyzer cargo glam 0.27.0 f64/float/impl#[f64][FloatExt]inverse_lerp().(in_start, in_end, self);
19 f64::lerprust-analyzer cargo glam 0.27.0 f64/float/impl#[f64][FloatExt]lerp().(out_start, out_end, t)
20 }
21 }