Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/box_utils/rbbox_overlaps_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ __device__ inline bool inrect(float pt_x, float pt_y, float * pts) {
abap = ab[0] * ap[0] + ab[1] * ap[1];
adad = ad[0] * ad[0] + ad[1] * ad[1];
adap = ad[0] * ap[0] + ad[1] * ap[1];
bool result = (abab - abap >= -1) and (abap >= -1) and (adad - adap >= -1) and (adap >= -1);
bool result = (abab >= abap) and (abap >= 0) and (adad >= adap) and (adap >= 0);
return result;
}

Expand Down