emath
0.28.1
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
?
Settings
Function
emath
::
vec2
Copy item path
source
·
[
−
]
pub const fn vec2(x:
f32
, y:
f32
) ->
Vec2
Expand description
vec2(x, y) == Vec2::new(x, y)