Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/rct.c
| Context not available. | |||||
| if (s1[1] < rect->ymin && s2[1] < rect->ymin) return false; | if (s1[1] < rect->ymin && s2[1] < rect->ymin) return false; | ||||
| if (s1[1] > rect->ymax && s2[1] > rect->ymax) return false; | if (s1[1] > rect->ymax && s2[1] > rect->ymax) return false; | ||||
| /* if either points intersect then we definetly intersect */ | /* if either points intersect then we definitely intersect */ | ||||
| if (BLI_rcti_isect_pt_v(rect, s1) || BLI_rcti_isect_pt_v(rect, s2)) { | if (BLI_rcti_isect_pt_v(rect, s1) || BLI_rcti_isect_pt_v(rect, s2)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| Context not available. | |||||
| if (s1[1] < rect->ymin && s2[1] < rect->ymin) return false; | if (s1[1] < rect->ymin && s2[1] < rect->ymin) return false; | ||||
| if (s1[1] > rect->ymax && s2[1] > rect->ymax) return false; | if (s1[1] > rect->ymax && s2[1] > rect->ymax) return false; | ||||
| /* if either points intersect then we definetly intersect */ | /* if either points intersect then we definitely intersect */ | ||||
| if (BLI_rctf_isect_pt_v(rect, s1) || BLI_rctf_isect_pt_v(rect, s2)) { | if (BLI_rctf_isect_pt_v(rect, s1) || BLI_rctf_isect_pt_v(rect, s2)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| Context not available. | |||||