use line/side-normal dot product to filter sides to consider for line/rectangle intersection