☰
In emath
In emath
Modules
align
smart_aim
Macros
emath_assert
Structs
Pos2
Rect
RectTransform
Rot2
Vec2
Traits
NumExt
Numeric
One
Real
Functions
almost_equal
exponential_smooth_factor
format_with_decimals_in_range
format_with_minimum_decimals
lerp
normalized_angle
pos2
remap
remap_clamp
round_to_decimals
vec2
?
Function
emath
::
vec2
source
·
[
−
]
pub const fn vec2(x:
f32
, y:
f32
) ->
Vec2
Expand description
vec2(x, y) == Vec2::new(x, y)