• Home
  • Raw
  • Download

Lines Matching refs:rhs

149     pub fn dot(self, rhs: Self) -> u16 {  in dot()
150 (self.x * rhs.x) + (self.y * rhs.y) in dot()
156 pub fn dot_into_vec(self, rhs: Self) -> Self { in dot_into_vec()
157 Self::splat(self.dot(rhs)) in dot_into_vec()
165 pub fn min(self, rhs: Self) -> Self { in min()
167 x: self.x.min(rhs.x), in min()
168 y: self.y.min(rhs.y), in min()
177 pub fn max(self, rhs: Self) -> Self { in max()
179 x: self.x.max(rhs.x), in max()
180 y: self.y.max(rhs.y), in max()
241 pub fn cmpeq(self, rhs: Self) -> BVec2 { in cmpeq()
242 BVec2::new(self.x.eq(&rhs.x), self.y.eq(&rhs.y)) in cmpeq()
252 pub fn cmpne(self, rhs: Self) -> BVec2 { in cmpne()
253 BVec2::new(self.x.ne(&rhs.x), self.y.ne(&rhs.y)) in cmpne()
263 pub fn cmpge(self, rhs: Self) -> BVec2 { in cmpge()
264 BVec2::new(self.x.ge(&rhs.x), self.y.ge(&rhs.y)) in cmpge()
274 pub fn cmpgt(self, rhs: Self) -> BVec2 { in cmpgt()
275 BVec2::new(self.x.gt(&rhs.x), self.y.gt(&rhs.y)) in cmpgt()
285 pub fn cmple(self, rhs: Self) -> BVec2 { in cmple()
286 BVec2::new(self.x.le(&rhs.x), self.y.le(&rhs.y)) in cmple()
296 pub fn cmplt(self, rhs: Self) -> BVec2 { in cmplt()
297 BVec2::new(self.x.lt(&rhs.x), self.y.lt(&rhs.y)) in cmplt()
415 pub const fn checked_add(self, rhs: Self) -> Option<Self> { in checked_add()
416 let x = match self.x.checked_add(rhs.x) { in checked_add()
420 let y = match self.y.checked_add(rhs.y) { in checked_add()
433 pub const fn checked_sub(self, rhs: Self) -> Option<Self> { in checked_sub()
434 let x = match self.x.checked_sub(rhs.x) { in checked_sub()
438 let y = match self.y.checked_sub(rhs.y) { in checked_sub()
451 pub const fn checked_mul(self, rhs: Self) -> Option<Self> { in checked_mul()
452 let x = match self.x.checked_mul(rhs.x) { in checked_mul()
456 let y = match self.y.checked_mul(rhs.y) { in checked_mul()
469 pub const fn checked_div(self, rhs: Self) -> Option<Self> { in checked_div()
470 let x = match self.x.checked_div(rhs.x) { in checked_div()
474 let y = match self.y.checked_div(rhs.y) { in checked_div()
487 pub const fn wrapping_add(self, rhs: Self) -> Self { in wrapping_add()
489 x: self.x.wrapping_add(rhs.x), in wrapping_add()
490 y: self.y.wrapping_add(rhs.y), in wrapping_add()
499 pub const fn wrapping_sub(self, rhs: Self) -> Self { in wrapping_sub()
501 x: self.x.wrapping_sub(rhs.x), in wrapping_sub()
502 y: self.y.wrapping_sub(rhs.y), in wrapping_sub()
511 pub const fn wrapping_mul(self, rhs: Self) -> Self { in wrapping_mul()
513 x: self.x.wrapping_mul(rhs.x), in wrapping_mul()
514 y: self.y.wrapping_mul(rhs.y), in wrapping_mul()
523 pub const fn wrapping_div(self, rhs: Self) -> Self { in wrapping_div()
525 x: self.x.wrapping_div(rhs.x), in wrapping_div()
526 y: self.y.wrapping_div(rhs.y), in wrapping_div()
535 pub const fn saturating_add(self, rhs: Self) -> Self { in saturating_add()
537 x: self.x.saturating_add(rhs.x), in saturating_add()
538 y: self.y.saturating_add(rhs.y), in saturating_add()
547 pub const fn saturating_sub(self, rhs: Self) -> Self { in saturating_sub()
549 x: self.x.saturating_sub(rhs.x), in saturating_sub()
550 y: self.y.saturating_sub(rhs.y), in saturating_sub()
559 pub const fn saturating_mul(self, rhs: Self) -> Self { in saturating_mul()
561 x: self.x.saturating_mul(rhs.x), in saturating_mul()
562 y: self.y.saturating_mul(rhs.y), in saturating_mul()
571 pub const fn saturating_div(self, rhs: Self) -> Self { in saturating_div()
573 x: self.x.saturating_div(rhs.x), in saturating_div()
574 y: self.y.saturating_div(rhs.y), in saturating_div()
583 pub const fn checked_add_signed(self, rhs: I16Vec2) -> Option<Self> { in checked_add_signed()
584 let x = match self.x.checked_add_signed(rhs.x) { in checked_add_signed()
588 let y = match self.y.checked_add_signed(rhs.y) { in checked_add_signed()
601 pub const fn wrapping_add_signed(self, rhs: I16Vec2) -> Self { in wrapping_add_signed()
603 x: self.x.wrapping_add_signed(rhs.x), in wrapping_add_signed()
604 y: self.y.wrapping_add_signed(rhs.y), in wrapping_add_signed()
613 pub const fn saturating_add_signed(self, rhs: I16Vec2) -> Self { in saturating_add_signed()
615 x: self.x.saturating_add_signed(rhs.x), in saturating_add_signed()
616 y: self.y.saturating_add_signed(rhs.y), in saturating_add_signed()
631 fn div(self, rhs: Self) -> Self { in div()
633 x: self.x.div(rhs.x), in div()
634 y: self.y.div(rhs.y), in div()
642 fn div(self, rhs: &U16Vec2) -> U16Vec2 { in div()
643 self.div(*rhs) in div()
650 fn div(self, rhs: &U16Vec2) -> U16Vec2 { in div()
651 (*self).div(*rhs) in div()
658 fn div(self, rhs: U16Vec2) -> U16Vec2 { in div()
659 (*self).div(rhs) in div()
665 fn div_assign(&mut self, rhs: Self) { in div_assign()
666 self.x.div_assign(rhs.x); in div_assign()
667 self.y.div_assign(rhs.y); in div_assign()
673 fn div_assign(&mut self, rhs: &U16Vec2) { in div_assign()
674 self.div_assign(*rhs) in div_assign()
681 fn div(self, rhs: u16) -> Self { in div()
683 x: self.x.div(rhs), in div()
684 y: self.y.div(rhs), in div()
692 fn div(self, rhs: &u16) -> U16Vec2 { in div()
693 self.div(*rhs) in div()
700 fn div(self, rhs: &u16) -> U16Vec2 { in div()
701 (*self).div(*rhs) in div()
708 fn div(self, rhs: u16) -> U16Vec2 { in div()
709 (*self).div(rhs) in div()
715 fn div_assign(&mut self, rhs: u16) { in div_assign()
716 self.x.div_assign(rhs); in div_assign()
717 self.y.div_assign(rhs); in div_assign()
723 fn div_assign(&mut self, rhs: &u16) { in div_assign()
724 self.div_assign(*rhs) in div_assign()
731 fn div(self, rhs: U16Vec2) -> U16Vec2 { in div()
733 x: self.div(rhs.x), in div()
734 y: self.div(rhs.y), in div()
742 fn div(self, rhs: &U16Vec2) -> U16Vec2 { in div()
743 self.div(*rhs) in div()
750 fn div(self, rhs: &U16Vec2) -> U16Vec2 { in div()
751 (*self).div(*rhs) in div()
758 fn div(self, rhs: U16Vec2) -> U16Vec2 { in div()
759 (*self).div(rhs) in div()
766 fn mul(self, rhs: Self) -> Self { in mul()
768 x: self.x.mul(rhs.x), in mul()
769 y: self.y.mul(rhs.y), in mul()
777 fn mul(self, rhs: &U16Vec2) -> U16Vec2 { in mul()
778 self.mul(*rhs) in mul()
785 fn mul(self, rhs: &U16Vec2) -> U16Vec2 { in mul()
786 (*self).mul(*rhs) in mul()
793 fn mul(self, rhs: U16Vec2) -> U16Vec2 { in mul()
794 (*self).mul(rhs) in mul()
800 fn mul_assign(&mut self, rhs: Self) { in mul_assign()
801 self.x.mul_assign(rhs.x); in mul_assign()
802 self.y.mul_assign(rhs.y); in mul_assign()
808 fn mul_assign(&mut self, rhs: &U16Vec2) { in mul_assign()
809 self.mul_assign(*rhs) in mul_assign()
816 fn mul(self, rhs: u16) -> Self { in mul()
818 x: self.x.mul(rhs), in mul()
819 y: self.y.mul(rhs), in mul()
827 fn mul(self, rhs: &u16) -> U16Vec2 { in mul()
828 self.mul(*rhs) in mul()
835 fn mul(self, rhs: &u16) -> U16Vec2 { in mul()
836 (*self).mul(*rhs) in mul()
843 fn mul(self, rhs: u16) -> U16Vec2 { in mul()
844 (*self).mul(rhs) in mul()
850 fn mul_assign(&mut self, rhs: u16) { in mul_assign()
851 self.x.mul_assign(rhs); in mul_assign()
852 self.y.mul_assign(rhs); in mul_assign()
858 fn mul_assign(&mut self, rhs: &u16) { in mul_assign()
859 self.mul_assign(*rhs) in mul_assign()
866 fn mul(self, rhs: U16Vec2) -> U16Vec2 { in mul()
868 x: self.mul(rhs.x), in mul()
869 y: self.mul(rhs.y), in mul()
877 fn mul(self, rhs: &U16Vec2) -> U16Vec2 { in mul()
878 self.mul(*rhs) in mul()
885 fn mul(self, rhs: &U16Vec2) -> U16Vec2 { in mul()
886 (*self).mul(*rhs) in mul()
893 fn mul(self, rhs: U16Vec2) -> U16Vec2 { in mul()
894 (*self).mul(rhs) in mul()
901 fn add(self, rhs: Self) -> Self { in add()
903 x: self.x.add(rhs.x), in add()
904 y: self.y.add(rhs.y), in add()
912 fn add(self, rhs: &U16Vec2) -> U16Vec2 { in add()
913 self.add(*rhs) in add()
920 fn add(self, rhs: &U16Vec2) -> U16Vec2 { in add()
921 (*self).add(*rhs) in add()
928 fn add(self, rhs: U16Vec2) -> U16Vec2 { in add()
929 (*self).add(rhs) in add()
935 fn add_assign(&mut self, rhs: Self) { in add_assign()
936 self.x.add_assign(rhs.x); in add_assign()
937 self.y.add_assign(rhs.y); in add_assign()
943 fn add_assign(&mut self, rhs: &U16Vec2) { in add_assign()
944 self.add_assign(*rhs) in add_assign()
951 fn add(self, rhs: u16) -> Self { in add()
953 x: self.x.add(rhs), in add()
954 y: self.y.add(rhs), in add()
962 fn add(self, rhs: &u16) -> U16Vec2 { in add()
963 self.add(*rhs) in add()
970 fn add(self, rhs: &u16) -> U16Vec2 { in add()
971 (*self).add(*rhs) in add()
978 fn add(self, rhs: u16) -> U16Vec2 { in add()
979 (*self).add(rhs) in add()
985 fn add_assign(&mut self, rhs: u16) { in add_assign()
986 self.x.add_assign(rhs); in add_assign()
987 self.y.add_assign(rhs); in add_assign()
993 fn add_assign(&mut self, rhs: &u16) { in add_assign()
994 self.add_assign(*rhs) in add_assign()
1001 fn add(self, rhs: U16Vec2) -> U16Vec2 { in add()
1003 x: self.add(rhs.x), in add()
1004 y: self.add(rhs.y), in add()
1012 fn add(self, rhs: &U16Vec2) -> U16Vec2 { in add()
1013 self.add(*rhs) in add()
1020 fn add(self, rhs: &U16Vec2) -> U16Vec2 { in add()
1021 (*self).add(*rhs) in add()
1028 fn add(self, rhs: U16Vec2) -> U16Vec2 { in add()
1029 (*self).add(rhs) in add()
1036 fn sub(self, rhs: Self) -> Self { in sub()
1038 x: self.x.sub(rhs.x), in sub()
1039 y: self.y.sub(rhs.y), in sub()
1047 fn sub(self, rhs: &U16Vec2) -> U16Vec2 { in sub()
1048 self.sub(*rhs) in sub()
1055 fn sub(self, rhs: &U16Vec2) -> U16Vec2 { in sub()
1056 (*self).sub(*rhs) in sub()
1063 fn sub(self, rhs: U16Vec2) -> U16Vec2 { in sub()
1064 (*self).sub(rhs) in sub()
1070 fn sub_assign(&mut self, rhs: U16Vec2) { in sub_assign()
1071 self.x.sub_assign(rhs.x); in sub_assign()
1072 self.y.sub_assign(rhs.y); in sub_assign()
1078 fn sub_assign(&mut self, rhs: &U16Vec2) { in sub_assign()
1079 self.sub_assign(*rhs) in sub_assign()
1086 fn sub(self, rhs: u16) -> Self { in sub()
1088 x: self.x.sub(rhs), in sub()
1089 y: self.y.sub(rhs), in sub()
1097 fn sub(self, rhs: &u16) -> U16Vec2 { in sub()
1098 self.sub(*rhs) in sub()
1105 fn sub(self, rhs: &u16) -> U16Vec2 { in sub()
1106 (*self).sub(*rhs) in sub()
1113 fn sub(self, rhs: u16) -> U16Vec2 { in sub()
1114 (*self).sub(rhs) in sub()
1120 fn sub_assign(&mut self, rhs: u16) { in sub_assign()
1121 self.x.sub_assign(rhs); in sub_assign()
1122 self.y.sub_assign(rhs); in sub_assign()
1128 fn sub_assign(&mut self, rhs: &u16) { in sub_assign()
1129 self.sub_assign(*rhs) in sub_assign()
1136 fn sub(self, rhs: U16Vec2) -> U16Vec2 { in sub()
1138 x: self.sub(rhs.x), in sub()
1139 y: self.sub(rhs.y), in sub()
1147 fn sub(self, rhs: &U16Vec2) -> U16Vec2 { in sub()
1148 self.sub(*rhs) in sub()
1155 fn sub(self, rhs: &U16Vec2) -> U16Vec2 { in sub()
1156 (*self).sub(*rhs) in sub()
1163 fn sub(self, rhs: U16Vec2) -> U16Vec2 { in sub()
1164 (*self).sub(rhs) in sub()
1171 fn rem(self, rhs: Self) -> Self { in rem()
1173 x: self.x.rem(rhs.x), in rem()
1174 y: self.y.rem(rhs.y), in rem()
1182 fn rem(self, rhs: &U16Vec2) -> U16Vec2 { in rem()
1183 self.rem(*rhs) in rem()
1190 fn rem(self, rhs: &U16Vec2) -> U16Vec2 { in rem()
1191 (*self).rem(*rhs) in rem()
1198 fn rem(self, rhs: U16Vec2) -> U16Vec2 { in rem()
1199 (*self).rem(rhs) in rem()
1205 fn rem_assign(&mut self, rhs: Self) { in rem_assign()
1206 self.x.rem_assign(rhs.x); in rem_assign()
1207 self.y.rem_assign(rhs.y); in rem_assign()
1213 fn rem_assign(&mut self, rhs: &U16Vec2) { in rem_assign()
1214 self.rem_assign(*rhs) in rem_assign()
1221 fn rem(self, rhs: u16) -> Self { in rem()
1223 x: self.x.rem(rhs), in rem()
1224 y: self.y.rem(rhs), in rem()
1232 fn rem(self, rhs: &u16) -> U16Vec2 { in rem()
1233 self.rem(*rhs) in rem()
1240 fn rem(self, rhs: &u16) -> U16Vec2 { in rem()
1241 (*self).rem(*rhs) in rem()
1248 fn rem(self, rhs: u16) -> U16Vec2 { in rem()
1249 (*self).rem(rhs) in rem()
1255 fn rem_assign(&mut self, rhs: u16) { in rem_assign()
1256 self.x.rem_assign(rhs); in rem_assign()
1257 self.y.rem_assign(rhs); in rem_assign()
1263 fn rem_assign(&mut self, rhs: &u16) { in rem_assign()
1264 self.rem_assign(*rhs) in rem_assign()
1271 fn rem(self, rhs: U16Vec2) -> U16Vec2 { in rem()
1273 x: self.rem(rhs.x), in rem()
1274 y: self.rem(rhs.y), in rem()
1282 fn rem(self, rhs: &U16Vec2) -> U16Vec2 { in rem()
1283 self.rem(*rhs) in rem()
1290 fn rem(self, rhs: &U16Vec2) -> U16Vec2 { in rem()
1291 (*self).rem(*rhs) in rem()
1298 fn rem(self, rhs: U16Vec2) -> U16Vec2 { in rem()
1299 (*self).rem(rhs) in rem()
1373 fn bitand(self, rhs: Self) -> Self::Output { in bitand()
1375 x: self.x.bitand(rhs.x), in bitand()
1376 y: self.y.bitand(rhs.y), in bitand()
1384 fn bitor(self, rhs: Self) -> Self::Output { in bitor()
1386 x: self.x.bitor(rhs.x), in bitor()
1387 y: self.y.bitor(rhs.y), in bitor()
1395 fn bitxor(self, rhs: Self) -> Self::Output { in bitxor()
1397 x: self.x.bitxor(rhs.x), in bitxor()
1398 y: self.y.bitxor(rhs.y), in bitxor()
1406 fn bitand(self, rhs: u16) -> Self::Output { in bitand()
1408 x: self.x.bitand(rhs), in bitand()
1409 y: self.y.bitand(rhs), in bitand()
1417 fn bitor(self, rhs: u16) -> Self::Output { in bitor()
1419 x: self.x.bitor(rhs), in bitor()
1420 y: self.y.bitor(rhs), in bitor()
1428 fn bitxor(self, rhs: u16) -> Self::Output { in bitxor()
1430 x: self.x.bitxor(rhs), in bitxor()
1431 y: self.y.bitxor(rhs), in bitxor()
1439 fn shl(self, rhs: i8) -> Self::Output { in shl()
1441 x: self.x.shl(rhs), in shl()
1442 y: self.y.shl(rhs), in shl()
1450 fn shr(self, rhs: i8) -> Self::Output { in shr()
1452 x: self.x.shr(rhs), in shr()
1453 y: self.y.shr(rhs), in shr()
1461 fn shl(self, rhs: i16) -> Self::Output { in shl()
1463 x: self.x.shl(rhs), in shl()
1464 y: self.y.shl(rhs), in shl()
1472 fn shr(self, rhs: i16) -> Self::Output { in shr()
1474 x: self.x.shr(rhs), in shr()
1475 y: self.y.shr(rhs), in shr()
1483 fn shl(self, rhs: i32) -> Self::Output { in shl()
1485 x: self.x.shl(rhs), in shl()
1486 y: self.y.shl(rhs), in shl()
1494 fn shr(self, rhs: i32) -> Self::Output { in shr()
1496 x: self.x.shr(rhs), in shr()
1497 y: self.y.shr(rhs), in shr()
1505 fn shl(self, rhs: i64) -> Self::Output { in shl()
1507 x: self.x.shl(rhs), in shl()
1508 y: self.y.shl(rhs), in shl()
1516 fn shr(self, rhs: i64) -> Self::Output { in shr()
1518 x: self.x.shr(rhs), in shr()
1519 y: self.y.shr(rhs), in shr()
1527 fn shl(self, rhs: u8) -> Self::Output { in shl()
1529 x: self.x.shl(rhs), in shl()
1530 y: self.y.shl(rhs), in shl()
1538 fn shr(self, rhs: u8) -> Self::Output { in shr()
1540 x: self.x.shr(rhs), in shr()
1541 y: self.y.shr(rhs), in shr()
1549 fn shl(self, rhs: u16) -> Self::Output { in shl()
1551 x: self.x.shl(rhs), in shl()
1552 y: self.y.shl(rhs), in shl()
1560 fn shr(self, rhs: u16) -> Self::Output { in shr()
1562 x: self.x.shr(rhs), in shr()
1563 y: self.y.shr(rhs), in shr()
1571 fn shl(self, rhs: u32) -> Self::Output { in shl()
1573 x: self.x.shl(rhs), in shl()
1574 y: self.y.shl(rhs), in shl()
1582 fn shr(self, rhs: u32) -> Self::Output { in shr()
1584 x: self.x.shr(rhs), in shr()
1585 y: self.y.shr(rhs), in shr()
1593 fn shl(self, rhs: u64) -> Self::Output { in shl()
1595 x: self.x.shl(rhs), in shl()
1596 y: self.y.shl(rhs), in shl()
1604 fn shr(self, rhs: u64) -> Self::Output { in shr()
1606 x: self.x.shr(rhs), in shr()
1607 y: self.y.shr(rhs), in shr()
1615 fn shl(self, rhs: crate::IVec2) -> Self::Output { in shl()
1617 x: self.x.shl(rhs.x), in shl()
1618 y: self.y.shl(rhs.y), in shl()
1626 fn shr(self, rhs: crate::IVec2) -> Self::Output { in shr()
1628 x: self.x.shr(rhs.x), in shr()
1629 y: self.y.shr(rhs.y), in shr()
1637 fn shl(self, rhs: crate::UVec2) -> Self::Output { in shl()
1639 x: self.x.shl(rhs.x), in shl()
1640 y: self.y.shl(rhs.y), in shl()
1648 fn shr(self, rhs: crate::UVec2) -> Self::Output { in shr()
1650 x: self.x.shr(rhs.x), in shr()
1651 y: self.y.shr(rhs.y), in shr()