handles edge case of ray coplanar with box face