b9ca6f315a1d181feaba5e08ef9109919ac04d5e,pyroomacoustics/geometry.py,,intersection2DSegments,#Any#Any#Any#Any#,82
Before Change
else:
endpointA = False
if (np.allclose(p, b1) or np.allclose(p, b2)):
endpointB = True
else:
endpointB = False
After Change
// First we weed out the simple cases where no intersection happens
// case 1
a1a2b1 = ccw3p(a1, a2, b1)
a1a2b2 = ccw3p(a1, a2, b2)
if a1a2b1 == a1a2b2:
return None, False, False
// case 2
b1b2a1 = ccw3p(b1, b2, a1)
b1b2a2 = ccw3p(b1, b2, a2)
if b1b2a1 == b1b2a2:
return None, False, False
da = a2-a1
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: LCAV/pyroomacoustics
Commit Name: b9ca6f315a1d181feaba5e08ef9109919ac04d5e
Time: 2017-02-13
Author: fakufaku@gmail.com
File Name: pyroomacoustics/geometry.py
Class Name:
Method Name: intersection2DSegments
Project Name: geomstats/geomstats
Commit Name: aba65f959fb114e67103a061e92ab5596c557d3d
Time: 2018-12-27
Author: ninamio78@gmail.com
File Name: geomstats/lie_group.py
Class Name: LieGroup
Method Name: group_exp
Project Name: librosa/librosa
Commit Name: fb1ee7c3e5e72765c20553c1e724d7ba6e08c1ae
Time: 2016-05-15
Author: brian.mcfee@nyu.edu
File Name: librosa/util/utils.py
Class Name:
Method Name: softmask