Lines Matching defs:f32
16 pub const fn vec2(x: f32, y: f32) -> Vec2 { in vec2()
60 pub const fn new(x: f32, y: f32) -> Self { in new()
111 pub fn write_to_slice(self, slice: &mut [f32]) { in write_to_slice()
124 pub fn dot(self, rhs: Self) -> f32 { in dot()
173 pub fn min_element(self) -> f32 { in min_element()
181 pub fn max_element(self) -> f32 { in max_element()
309 pub fn length(self) -> f32 { in length()
318 pub fn length_squared(self) -> f32 { in length_squared()
326 pub fn length_recip(self) -> f32 { in length_recip()
332 pub fn distance(self, rhs: Self) -> f32 { in distance()
338 pub fn distance_squared(self, rhs: Self) -> f32 { in distance_squared()
556 pub fn clamp_length(self, min: f32, max: f32) -> Self { in clamp_length()
613 pub fn angle_between(self, rhs: Self) -> f32 { in angle_between()
636 pub fn perp_dot(self, rhs: Self) -> f32 { in perp_dot()
710 fn div_assign(&mut self, rhs: f32) { in div_assign()
716 impl Div<Vec2> for f32 { implementation
759 fn mul_assign(&mut self, rhs: f32) { in mul_assign()
765 impl Mul<Vec2> for f32 { implementation
808 fn add_assign(&mut self, rhs: f32) { in add_assign()
814 impl Add<Vec2> for f32 { implementation
857 fn sub_assign(&mut self, rhs: f32) { in sub_assign()
863 impl Sub<Vec2> for f32 { implementation
906 fn rem_assign(&mut self, rhs: f32) { in rem_assign()
912 impl Rem<Vec2> for f32 { implementation
1037 impl From<Vec2> for [f32; 2] { implementation
1046 fn from(t: (f32, f32)) -> Self { in from()
1051 impl From<Vec2> for (f32, f32) { implementation