Module smart_
aim
emath
0.30.0
Module smart_
aim
Module Items
Functions
In crate emath
Modules
align
easing
smart_aim
Structs
History
OrderedFloat
Pos2
Rangef
Rect
RectTransform
Rot2
TSTransform
Vec2
Vec2b
Traits
Float
NumExt
Numeric
One
Real
Functions
almost_equal
ease_in_ease_out
exponential_smooth_factor
format_with_decimals_in_range
format_with_minimum_decimals
interpolation_factor
inverse_lerp
lerp
normalized_angle
pos2
remap
remap_clamp
round_to_decimals
vec2
emath
Module
smart_aim
Copy item path
Settings
Help
Summary
Source
Expand description
Find “simple” numbers is some range. Used by sliders.
Functions
§
best_
in_
range_
f64
Find the “simplest” number in a closed range [min, max], i.e. the one with the fewest decimal digits.