get_intersection_point#
- zeroheliumkit.src.utils.get_intersection_point(abc1: tuple, abc2: tuple) Point[source]#
Calculates the intersection point of two lines represented by their coefficients.
- Parameters:
abc1 (tuple) – Coefficients of the first line in the form (a1, b1, c1).
abc2 (tuple) – Coefficients of the second line in the form (a2, b2, c2).
- Returns:
The intersection point of the two lines.
- Return type:
Point
- Raises:
ZeroDivisionError – If the lines are parallel and do not intersect.
Example
>>> abc1 = (2, 3, 4) >>> abc2 = (5, 6, 7) >>> result = get_intersection_point(abc1, abc2) Point(1.0, 2.0)