• Home
  • Raw
  • Download

Lines Matching refs:Vec2

16 pub const fn vec2(x: f32, y: f32) -> Vec2 {  in vec2()  argument
17 Vec2::new(x, y) 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
716 impl Div<Vec2> for f32 {
717 type Output = Vec2;
719 fn div(self, rhs: Vec2) -> Vec2 { in div() argument
720 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
765 impl Mul<Vec2> for f32 {
766 type Output = Vec2;
768 fn mul(self, rhs: Vec2) -> Vec2 { in mul() argument
769 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
814 impl Add<Vec2> for f32 {
815 type Output = Vec2;
817 fn add(self, rhs: Vec2) -> Vec2 { in add() argument
818 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() argument
844 impl Sub<f32> for Vec2 { implementation
855 impl SubAssign<f32> for Vec2 { implementation
863 impl Sub<Vec2> for f32 {
864 type Output = Vec2;
866 fn sub(self, rhs: Vec2) -> Vec2 { in sub() argument
867 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
912 impl Rem<Vec2> for f32 {
913 type Output = Vec2;
915 fn rem(self, rhs: Vec2) -> Vec2 { in rem() argument
916 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
935 unsafe { &mut *(self as *mut Vec2 as *mut [f32; 2]) }
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
1023 fmt.debug_tuple(stringify!(Vec2)) in fmt()
1030 impl From<[f32; 2]> for Vec2 { implementation
1037 impl From<Vec2> for [f32; 2] {
1039 fn from(v: Vec2) -> Self { in from()
1044 impl From<(f32, f32)> for Vec2 { implementation
1051 impl From<Vec2> for (f32, f32) {
1053 fn from(v: Vec2) -> Self { in from()