pub fn vec2f<X: CastF32, Y: CastF32>(x: X, y: Y) -> Vec2f
Expand description
Create a Vec2f from x and y inputs
This is a convenience function that provides a little more flexibility than Vec2f::new in that it will happily take numbers that aren’t f32 (including a mix of different types for each component). Vec2f is such a common type that it seems reasonable to provide a little extra ease of use.