torchsig.utils.coordinate_systemΒΆ
Library for overlap detection in spectrograms to control co-channel interference.
This module provides classes and functions to define 2D coordinates and axis-aligned rectangles, and to detect overlaps between rectangles using line-segment intersection and containment tests.
Functions
Determine if three points a, b, c are in counter-clockwise order. |
|
Check if a corner point is within the bounds of a reference rectangle. |
|
Check if rectangle_1 is completely inside rectangle_2. |
|
Check if two rectangles overlap by intersection or containment. |
|
Check if a coordinate lies within a closed interval on the x-axis. |
|
Check if the line segments AB and CD intersect. |
Classes
Represents a point in 2D space with x and y coordinates. |
|
Represents an axis-aligned rectangle defined by two opposite corners. |