get_intersect

Contents

get_intersect#

autoplex.fitting.common.regularization.get_intersect(a1, a2, b1, b2)[source]#

Return the point of intersection of the lines passing through a2,a1 and b2,b1.

a1: [x, y]

a point on the first line

a2: [x, y]

another point on the first line

b1: [x, y]

a point on the second line

b2: [x, y]

another point on the second line

Return type:

tuple[float, float] | tuple