36 class FL_EXPORT TPoint
47 TPoint(
const TPoint<int8_t>& tp) : x((T)tp.x), y((T)tp.y)
51 TPoint(
const TPoint<int8_t>* pTp) : x((T)pTp->x), y((T)pTp->y)
55 TPoint(
const TPoint<uint8_t>& tp) : x((T)tp.x), y((T)tp.y)
59 TPoint(
const TPoint<uint8_t>* pTp) : x((T)pTp->x), y((T)pTp->y)
63 TPoint(
const TPoint<int16_t>& tp) : x((T)tp.x), y((T)tp.y)
67 TPoint(
const TPoint<int16_t>* pTp) : x((T)pTp->x), y((T)pTp->y)
71 TPoint(
const TPoint<uint16_t>& tp) : x((T)tp.x), y((T)tp.y)
75 TPoint(
const TPoint<uint16_t>* pTp) : x((T)pTp->x), y((T)pTp->y)
79 TPoint(
const TPoint<int32_t>& tp) : x((T)tp.x), y((T)tp.y)
83 TPoint(
const TPoint<int32_t>* pTp) : x((T)pTp->x), y((T)pTp->y)
87 TPoint(
const TPoint<uint32_t>& tp) : x((T)tp.x), y((T)tp.y)
91 TPoint(
const TPoint<uint32_t>* pTp) : x((T)pTp->x), y((T)pTp->y)
95 TPoint(
const TPoint<int64_t>& tp) : x((T)tp.x), y((T)tp.y)
99 TPoint(
const TPoint<int64_t>* pTp) : x((T)pTp->x), y((T)pTp->y)
103 TPoint(
const TPoint<uint64_t>& tp) : x((T)tp.x), y((T)tp.y)
107 TPoint(
const TPoint<uint64_t>* pTp) : x((T)pTp->x), y((T)pTp->y)
111 TPoint(
const TPoint<float>& tp) : x((T)tp.x), y((T)tp.y)
115 TPoint(
const TPoint<float>* pTp) : x((T)pTp->x), y((T)pTp->y)
119 TPoint(
const TPoint<double>& tp) : x((T)tp.x), y((T)tp.y)
123 TPoint(
const TPoint<double>* pTp) : x((T)pTp->x), y((T)pTp->y)
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)
168 void Set(
const TPoint<int8_t>& tp)
174 void Set(
const TPoint<int8_t>* pTp)
180 void Set(
const TPoint<uint8_t>& tp)
186 void Set(
const TPoint<uint8_t>* pTp)
192 void Set(
const TPoint<int16_t>& tp)
198 void Set(
const TPoint<int16_t>* pTp)
204 void Set(
const TPoint<uint16_t>& tp)
210 void Set(
const TPoint<uint16_t>* pTp)
216 void Set(
const TPoint<int32_t>& tp)
222 void Set(
const TPoint<int32_t>* pTp)
228 void Set(
const TPoint<uint32_t>& tp)
234 void Set(
const TPoint<uint32_t>* pTp)
240 void Set(
const TPoint<int64_t>& tp)
246 void Set(
const TPoint<int64_t>* pTp)
252 void Set(
const TPoint<uint64_t>& tp)
258 void Set(
const TPoint<uint64_t>* pTp)
264 void Set(
const TPoint<float>& tp)
270 void Set(
const TPoint<float>* pTp)
276 void Set(
const TPoint<double>& tp)
282 void Set(
const TPoint<double>* pTp)
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)
362 const TPoint<T>& operator=(
float value)
369 const TPoint<T>& operator=(
double value)
376 const TPoint<T>& operator=(
const TPoint<int32_t>& tp)
384 const TPoint<T>& operator=(
const TPoint<int64_t>& tp)
392 const TPoint<T>& operator=(
const TPoint<float>& tp)
400 const TPoint<T>& operator=(
const TPoint<double>& tp)
408 bool operator==(
const TPoint<int32_t>& tp)
const
410 return x == (T)tp.x && y == (T)tp.y;
413 bool operator==(
const TPoint<int64_t>& tp)
const
415 return x == (T)tp.x && y == (T)tp.y;
418 bool operator==(
const TPoint<float>& tp)
const
420 return x == (T)tp.x && y == (T)tp.y;
423 bool operator==(
const TPoint<double>& tp)
const
425 return x == (T)tp.x && y == (T)tp.y;
428 bool operator!=(
const TPoint<int32_t>& tp)
const
430 return x != (T)tp.x || y != (T)tp.y;
433 bool operator!=(
const TPoint<int64_t>& tp)
const
435 return x != (T)tp.x || y != (T)tp.y;
438 bool operator!=(
const TPoint<float>& tp)
const
440 return x != (T)tp.x || y != (T)tp.y;
443 bool operator!=(
const TPoint<double>& tp)
const
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)
464 const TPoint<T>& operator+=(
float value)
472 const TPoint<T>& operator+=(
double value)
480 const TPoint<T>& operator+=(
const TPoint<int32_t>& tp)
488 const TPoint<T>& operator+=(
const TPoint<int64_t>& tp)
496 const TPoint<T>& operator+=(
const TPoint<float>& tp)
504 const TPoint<T>& operator+=(
const TPoint<double>& tp)
512 const TPoint<T>& operator-=(int32_t value)
520 const TPoint<T>& operator-=(int64_t value)
528 const TPoint<T>& operator-=(
float value)
536 const TPoint<T>& operator-=(
double value)
544 const TPoint<T>& operator-=(
const TPoint<int32_t>& tp)
552 const TPoint<T>& operator-=(
const TPoint<int64_t>& tp)
560 const TPoint<T>& operator-=(
const TPoint<float>& tp)
568 const TPoint<T>& operator-=(
const TPoint<double>& tp)
576 const TPoint<T>& operator*=(int32_t value)
584 const TPoint<T>& operator*=(int64_t value)
592 const TPoint<T>& operator*=(
float value)
600 const TPoint<T>& operator*=(
double value)
608 const TPoint<T>& operator*=(
const TPoint<int32_t>& tp)
616 const TPoint<T>& operator*=(
const TPoint<int64_t>& tp)
624 const TPoint<T>& operator*=(
const TPoint<float>& tp)
632 const TPoint<T>& operator*=(
const TPoint<double>& tp)
640 const TPoint<T>& operator/=(int32_t value)
648 const TPoint<T>& operator/=(int64_t value)
656 const TPoint<T>& operator/=(
float value)
664 const TPoint<T>& operator/=(
double value)
672 const TPoint<T>& operator/=(
const TPoint<int32_t>& tp)
680 const TPoint<T>& operator/=(
const TPoint<int64_t>& tp)
688 const TPoint<T>& operator/=(
const TPoint<float>& tp)
696 const TPoint<T>& operator/=(
const TPoint<double>& tp)
704 TPoint<T> operator+(int32_t value)
const
707 tpReturn.x = x + (T)value;
708 tpReturn.y = y + (T)value;
712 TPoint<T> operator+(int64_t value)
const
715 tpReturn.x = x + (T)value;
716 tpReturn.y = y + (T)value;
720 TPoint<T> operator+(
float value)
const
723 tpReturn.x = x + (T)value;
724 tpReturn.y = y + (T)value;
728 TPoint<T> operator+(
double value)
const
731 tpReturn.x = x + (T)value;
732 tpReturn.y = y + (T)value;
736 TPoint<T> operator+(
const TPoint<int32_t>& tp)
const
739 tpReturn.x = x + (T)tp.x;
740 tpReturn.y = y + (T)tp.y;
744 TPoint<T> operator+(
const TPoint<int64_t>& tp)
const
747 tpReturn.x = x + (T)tp.x;
748 tpReturn.y = y + (T)tp.y;
752 TPoint<T> operator+(
const TPoint<float>& tp)
const
755 tpReturn.x = x + (T)tp.x;
756 tpReturn.y = y + (T)tp.y;
760 TPoint<T> operator+(
const TPoint<double>& tp)
const
763 tpReturn.x = x + (T)tp.x;
764 tpReturn.y = y + (T)tp.y;
768 TPoint<T> operator-(int32_t value)
const
771 tpReturn.x = x - (T)value;
772 tpReturn.y = y - (T)value;
776 TPoint<T> operator-(int64_t value)
const
779 tpReturn.x = x - (T)value;
780 tpReturn.y = y - (T)value;
784 TPoint<T> operator-(
float value)
const
787 tpReturn.x = x - (T)value;
788 tpReturn.y = y - (T)value;
792 TPoint<T> operator-(
double value)
const
795 tpReturn.x = x - (T)value;
796 tpReturn.y = y - (T)value;
800 TPoint<T> operator-(
const TPoint<int32_t>& tp)
const
803 tpReturn.x = x - (T)tp.x;
804 tpReturn.y = y - (T)tp.y;
808 TPoint<T> operator-(
const TPoint<int64_t>& tp)
const
811 tpReturn.x = x - (T)tp.x;
812 tpReturn.y = y - (T)tp.y;
816 TPoint<T> operator-(
const TPoint<float>& tp)
const
819 tpReturn.x = x - (T)tp.x;
820 tpReturn.y = y - (T)tp.y;
824 TPoint<T> operator-(
const TPoint<double>& tp)
const
827 tpReturn.x = x - (T)tp.x;
828 tpReturn.y = y - (T)tp.y;
832 TPoint<T> operator*(int32_t value)
const
835 tpReturn.x = x * (T)value;
836 tpReturn.y = y * (T)value;
840 TPoint<T> operator*(int64_t value)
const
843 tpReturn.x = x * (T)value;
844 tpReturn.y = y * (T)value;
848 TPoint<T> operator*(
float value)
const
851 tpReturn.x = x * (T)value;
852 tpReturn.y = y * (T)value;
856 TPoint<T> operator*(
double value)
const
859 tpReturn.x = x * (T)value;
860 tpReturn.y = y * (T)value;
864 TPoint<T> operator*(
const TPoint<int32_t>& tp)
const
867 tpReturn.x = x * (T)tp.x;
868 tpReturn.y = y * (T)tp.y;
872 TPoint<T> operator*(
const TPoint<int64_t>& tp)
const
875 tpReturn.x = x * (T)tp.x;
876 tpReturn.y = y * (T)tp.y;
880 TPoint<T> operator*(
const TPoint<float>& tp)
const
883 tpReturn.x = x * (T)tp.x;
884 tpReturn.y = y * (T)tp.y;
888 TPoint<T> operator*(
const TPoint<double>& tp)
const
891 tpReturn.x = x * (T)tp.x;
892 tpReturn.y = y * (T)tp.y;
896 TPoint<T> operator/(int32_t value)
const
899 tpReturn.x = x / (T)value;
900 tpReturn.y = y / (T)value;
904 TPoint<T> operator/(int64_t value)
const
907 tpReturn.x = x / (T)value;
908 tpReturn.y = y / (T)value;
912 TPoint<T> operator/(
float value)
const
915 tpReturn.x = x / (T)value;
916 tpReturn.y = y / (T)value;
920 TPoint<T> operator/(
double value)
const
923 tpReturn.x = x / (T)value;
924 tpReturn.y = y / (T)value;
928 TPoint<T> operator/(
const TPoint<int32_t>& tp)
const
931 tpReturn.x = x / (T)tp.x;
932 tpReturn.y = y / (T)tp.y;
936 TPoint<T> operator/(
const TPoint<int64_t>& tp)
const
939 tpReturn.x = x / (T)tp.x;
940 tpReturn.y = y / (T)tp.y;
944 TPoint<T> operator/(
const TPoint<float>& tp)
const
947 tpReturn.x = x / (T)tp.x;
948 tpReturn.y = y / (T)tp.y;
952 TPoint<T> operator/(
const TPoint<double>& tp)
const
955 tpReturn.x = x / (T)tp.x;
956 tpReturn.y = y / (T)tp.y;
960 friend TPoint<T> operator+(int32_t value,
const TPoint<T>& tp)
962 return TPoint<T>((T)value + tp.x, (T)value + tp.y);
964 friend TPoint<T> operator+(int64_t value,
const TPoint<T>& tp)
966 return TPoint<T>((T)value + tp.x, (T)value + tp.y);
968 friend TPoint<T> operator+(
float value,
const TPoint<T>& tp)
970 return TPoint<T>((T)value + tp.x, (T)value + tp.y);
972 friend TPoint<T> operator+(
double value,
const TPoint<T>& tp)
974 return TPoint<T>((T)value + tp.x, (T)value + tp.y);
977 friend TPoint<T> operator-(int32_t value,
const TPoint<T>& tp)
979 return TPoint<T>((T)value - tp.x, (T)value - tp.y);
981 friend TPoint<T> operator-(int64_t value,
const TPoint<T>& tp)
983 return TPoint<T>((T)value - tp.x, (T)value - tp.y);
985 friend TPoint<T> operator-(
float value,
const TPoint<T>& tp)
987 return TPoint<T>((T)value - tp.x, (T)value - tp.y);
989 friend TPoint<T> operator-(
double value,
const TPoint<T>& tp)
991 return TPoint<T>((T)value - tp.x, (T)value - tp.y);
994 friend TPoint<T> operator*(int32_t value,
const TPoint<T>& tp)
996 return TPoint<T>((T)value * tp.x, (T)value * tp.y);
998 friend TPoint<T> operator*(int64_t value,
const TPoint<T>& tp)
1000 return TPoint<T>((T)value * tp.x, (T)value * tp.y);
1002 friend TPoint<T> operator*(
float value,
const TPoint<T>& tp)
1004 return TPoint<T>((T)value * tp.x, (T)value * tp.y);
1006 friend TPoint<T> operator*(
double value,
const TPoint<T>& tp)
1008 return TPoint<T>((T)value * tp.x, (T)value * tp.y);
1011 friend TPoint<T> operator/(int32_t value,
const TPoint<T>& tp)
1013 return TPoint<T>((T)value / tp.x, (T)value / tp.y);
1015 friend TPoint<T> operator/(int64_t value,
const TPoint<T>& tp)
1017 return TPoint<T>((T)value / tp.x, (T)value / tp.y);
1019 friend TPoint<T> operator/(
float value,
const TPoint<T>& tp)
1021 return TPoint<T>((T)value / tp.x, (T)value / tp.y);
1023 friend TPoint<T> operator/(
double value,
const TPoint<T>& tp)
1025 return TPoint<T>((T)value / tp.x, (T)value / tp.y);
점을 표현하는 간략화된 클래스
Definition TPoint.h:37
Definition AESCryptography.h:18