• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitshifter / glam-rs / 14749563983

30 Apr 2025 07:52AM UTC coverage: 96.019% (-0.008%) from 96.027%
14749563983

push

github

web-flow
feat: add fract_gl for f32 and f64 types to match VecN (#632)

0 of 4 new or added lines in 2 files covered. (0.0%)

43753 of 45567 relevant lines covered (96.02%)

3.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.78
/src/f32/float.rs
1
// Generated from float.rs.tera template. Edit the template, not the generated file.
2

3
use crate::float::FloatExt;
4

5
impl FloatExt for f32 {
6
    #[inline]
7
    fn lerp(self, rhs: f32, t: f32) -> f32 {
6✔
8
        self + (rhs - self) * t
6✔
9
    }
10

11
    #[inline]
12
    fn inverse_lerp(a: f32, b: f32, v: f32) -> f32 {
3✔
13
        (v - a) / (b - a)
3✔
14
    }
15

16
    #[inline]
17
    fn remap(self, in_start: f32, in_end: f32, out_start: f32, out_end: f32) -> f32 {
3✔
18
        let t = f32::inverse_lerp(in_start, in_end, self);
3✔
19
        f32::lerp(out_start, out_end, t)
3✔
20
    }
21

22
    #[inline]
NEW
23
    fn fract_gl(self) -> f32 {
×
NEW
24
        self - crate::f32::math::floor(self)
×
25
    }
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc