| 965 | } |
| 966 | |
| 967 | struct UI_Intersection_Rect { |
| 968 | v2 p[2]; |
| 969 | |
| 970 | |
| 971 | UI_Intersection_Rect() { |
| 972 | p[0] = v2(0); |
| 973 | p[1] = v2(0); |
| 974 | } |
| 975 | UI_Intersection_Rect(v2 p_0, v2 p_1) { |
| 976 | p[0] = p_0; |
| 977 | p[1] = p_1; |
| 978 | } |
| 979 | }; |
| 980 | inline static bool operator==(UI_Intersection_Rect A, UI_Intersection_Rect B) { |
| 981 | return A.p[0].x == B.p[0].x && A.p[1].x == B.p[1].x && |
| 982 | A.p[0].y == B.p[0].y && A.p[1].y == B.p[1].y; |