Module: geometry
From SolutionSpaceTool
Helper module containing several geometrical operations.
package | tools |
imported by: |
Contents |
Functions
boolean overlap1d(a_left, a_right, b_left, b_right)
a_left , a_right ,b_left ,b_right: int or float
This function checks an overlap of two parallel lines. Returns:
- False: no overlap - True: overlap
boolean overlap2d(ax1, ay1, ax2, ay2, bx1, by1, bx2, by2)
ax1, ay1, ax2, ay2, bx1, by1, bx2, by2: int or float
This function checks an overlap of two non-parallel lines. Returns:
- False: no overlap - True: overlap