128 TPoint(int8_t x, int8_t y) : x((T)x), y((T)y)
132 TPoint(uint8_t x, uint8_t y) : x((T)x), y((T)y)
136 TPoint(int16_t x, int16_t y) : x((T)x), y((T)y)
140 TPoint(uint16_t x, uint16_t y) : x((T)x), y((T)y)
144 TPoint(int32_t x, int32_t y) : x((T)x), y((T)y)
148 TPoint(uint32_t x, uint32_t y) : x((T)x), y((T)y)
152 TPoint(int64_t x, int64_t y) : x((T)x), y((T)y)
156 TPoint(uint64_t x, uint64_t y) : x((T)x), y((T)y)
160 TPoint(
float x,
float y) : x((T)x), y((T)y)
164 TPoint(
double x,
double y) : x((T)x), y((T)y)
288 void Set(int8_t x, int8_t y)
294 void Set(uint8_t x, uint8_t y)
300 void Set(int16_t x, int16_t y)
306 void Set(uint16_t x, uint16_t y)
312 void Set(int32_t x, int32_t y)
318 void Set(uint32_t x, uint32_t y)
324 void Set(int64_t x, int64_t y)
330 void Set(uint64_t x, uint64_t y)
336 void Set(
float x,
float y)
342 void Set(
double x,
double y)
348 const TPoint<T>& operator=(int32_t value)
355 const TPoint<T>& operator=(int64_t value)
410 return x == (T)tp.x && y == (T)tp.y;
415 return x == (T)tp.x && y == (T)tp.y;
420 return x == (T)tp.x && y == (T)tp.y;
425 return x == (T)tp.x && y == (T)tp.y;
430 return x != (T)tp.x || y != (T)tp.y;
435 return x != (T)tp.x || y != (T)tp.y;
440 return x != (T)tp.x || y != (T)tp.y;
445 return x != (T)tp.x || y != (T)tp.y;
448 const TPoint<T>& operator+=(int32_t value)
456 const TPoint<T>& operator+=(int64_t value)
472 const TPoint<T>& operator+=(
double value)
512 const TPoint<T>& operator-=(int32_t value)
520 const TPoint<T>& operator-=(int64_t value)
536 const TPoint<T>& operator-=(
double value)
576 const TPoint<T>& operator*=(int32_t value)
584 const TPoint<T>& operator*=(int64_t value)
600 const TPoint<T>& operator*=(
double value)
640 const TPoint<T>& operator/=(int32_t value)
648 const TPoint<T>& operator/=(int64_t value)
664 const TPoint<T>& operator/=(
double value)
707 tpReturn.x = x + (T)value;
708 tpReturn.y = y + (T)value;
715 tpReturn.x = x + (T)value;
716 tpReturn.y = y + (T)value;
723 tpReturn.x = x + (T)value;
724 tpReturn.y = y + (T)value;
731 tpReturn.x = x + (T)value;
732 tpReturn.y = y + (T)value;
739 tpReturn.x = x + (T)tp.x;
740 tpReturn.y = y + (T)tp.y;
747 tpReturn.x = x + (T)tp.x;
748 tpReturn.y = y + (T)tp.y;
755 tpReturn.x = x + (T)tp.x;
756 tpReturn.y = y + (T)tp.y;
763 tpReturn.x = x + (T)tp.x;
764 tpReturn.y = y + (T)tp.y;
771 tpReturn.x = x - (T)value;
772 tpReturn.y = y - (T)value;
779 tpReturn.x = x - (T)value;
780 tpReturn.y = y - (T)value;
787 tpReturn.x = x - (T)value;
788 tpReturn.y = y - (T)value;
795 tpReturn.x = x - (T)value;
796 tpReturn.y = y - (T)value;
803 tpReturn.x = x - (T)tp.x;
804 tpReturn.y = y - (T)tp.y;
811 tpReturn.x = x - (T)tp.x;
812 tpReturn.y = y - (T)tp.y;
819 tpReturn.x = x - (T)tp.x;
820 tpReturn.y = y - (T)tp.y;
827 tpReturn.x = x - (T)tp.x;
828 tpReturn.y = y - (T)tp.y;
835 tpReturn.x = x * (T)value;
836 tpReturn.y = y * (T)value;
843 tpReturn.x = x * (T)value;
844 tpReturn.y = y * (T)value;
851 tpReturn.x = x * (T)value;
852 tpReturn.y = y * (T)value;
859 tpReturn.x = x * (T)value;
860 tpReturn.y = y * (T)value;
867 tpReturn.x = x * (T)tp.x;
868 tpReturn.y = y * (T)tp.y;
875 tpReturn.x = x * (T)tp.x;
876 tpReturn.y = y * (T)tp.y;
883 tpReturn.x = x * (T)tp.x;
884 tpReturn.y = y * (T)tp.y;
891 tpReturn.x = x * (T)tp.x;
892 tpReturn.y = y * (T)tp.y;
899 tpReturn.x = x / (T)value;
900 tpReturn.y = y / (T)value;
907 tpReturn.x = x / (T)value;
908 tpReturn.y = y / (T)value;
915 tpReturn.x = x / (T)value;
916 tpReturn.y = y / (T)value;
923 tpReturn.x = x / (T)value;
924 tpReturn.y = y / (T)value;
931 tpReturn.x = x / (T)tp.x;
932 tpReturn.y = y / (T)tp.y;
939 tpReturn.x = x / (T)tp.x;
940 tpReturn.y = y / (T)tp.y;
947 tpReturn.x = x / (T)tp.x;
948 tpReturn.y = y / (T)tp.y;
955 tpReturn.x = x / (T)tp.x;
956 tpReturn.y = y / (T)tp.y;
962 return TPoint<T>((T)value + tp.x, (T)value + tp.y);
966 return TPoint<T>((T)value + tp.x, (T)value + tp.y);
970 return TPoint<T>((T)value + tp.x, (T)value + tp.y);
974 return TPoint<T>((T)value + tp.x, (T)value + tp.y);
979 return TPoint<T>((T)value - tp.x, (T)value - tp.y);
983 return TPoint<T>((T)value - tp.x, (T)value - tp.y);
987 return TPoint<T>((T)value - tp.x, (T)value - tp.y);
991 return TPoint<T>((T)value - tp.x, (T)value - tp.y);
996 return TPoint<T>((T)value * tp.x, (T)value * tp.y);
1000 return TPoint<T>((T)value * tp.x, (T)value * tp.y);
1004 return TPoint<T>((T)value * tp.x, (T)value * tp.y);
1008 return TPoint<T>((T)value * tp.x, (T)value * tp.y);
1013 return TPoint<T>((T)value / tp.x, (T)value / tp.y);
1017 return TPoint<T>((T)value / tp.x, (T)value / tp.y);
1021 return TPoint<T>((T)value / tp.x, (T)value / tp.y);
1025 return TPoint<T>((T)value / tp.x, (T)value / tp.y);
Simplified class representing a point.
Definition TPoint.h:37