Lines Matching defs:Vec2
16 pub const fn vec2(x: f32, y: f32) -> Vec2 { in vec2()
25 pub struct Vec2 { struct
30 impl Vec2 { argument
671 impl Default for Vec2 { implementation
678 impl Div<Vec2> for Vec2 { implementation
689 impl DivAssign<Vec2> for Vec2 { implementation
697 impl Div<f32> for Vec2 { implementation
708 impl DivAssign<f32> for Vec2 { implementation
719 fn div(self, rhs: Vec2) -> Vec2 { in div()
727 impl Mul<Vec2> for Vec2 { implementation
738 impl MulAssign<Vec2> for Vec2 { implementation
746 impl Mul<f32> for Vec2 { implementation
757 impl MulAssign<f32> for Vec2 { implementation
768 fn mul(self, rhs: Vec2) -> Vec2 { in mul()
776 impl Add<Vec2> for Vec2 { implementation
787 impl AddAssign<Vec2> for Vec2 { implementation
795 impl Add<f32> for Vec2 { implementation
806 impl AddAssign<f32> for Vec2 { implementation
817 fn add(self, rhs: Vec2) -> Vec2 { in add()
825 impl Sub<Vec2> for Vec2 { implementation
836 impl SubAssign<Vec2> for Vec2 { implementation
838 fn sub_assign(&mut self, rhs: Vec2) { in sub_assign()
844 impl Sub<f32> for Vec2 { implementation
855 impl SubAssign<f32> for Vec2 { implementation
866 fn sub(self, rhs: Vec2) -> Vec2 { in sub()
874 impl Rem<Vec2> for Vec2 { implementation
885 impl RemAssign<Vec2> for Vec2 { implementation
893 impl Rem<f32> for Vec2 { implementation
904 impl RemAssign<f32> for Vec2 { implementation
915 fn rem(self, rhs: Vec2) -> Vec2 { in rem()
924 impl AsRef<[f32; 2]> for Vec2 { implementation
927 unsafe { &*(self as *const Vec2 as *const [f32; 2]) } constant
932 impl AsMut<[f32; 2]> for Vec2 { implementation
939 impl Sum for Vec2 { implementation
949 impl<'a> Sum<&'a Self> for Vec2 { implementation
959 impl Product for Vec2 { implementation
969 impl<'a> Product<&'a Self> for Vec2 { implementation
979 impl Neg for Vec2 { implementation
990 impl Index<usize> for Vec2 { implementation
1002 impl IndexMut<usize> for Vec2 { implementation
1014 impl fmt::Display for Vec2 { implementation
1021 impl fmt::Debug for Vec2 { implementation
1030 impl From<[f32; 2]> for Vec2 { implementation
1044 impl From<(f32, f32)> for Vec2 { implementation