map2loop.thickness_calculator.calculate_endpoints#

map2loop.thickness_calculator.calculate_endpoints(start_point: Point, azimuth_deg: float, distance: int, bbox: DataFrame) LineString#

Calculate the endpoints of a line segment given a start point, azimuth angle, distance, and bounding box.

Parameters: start_point (tuple): The coordinates of the start point (x, y). azimuth_deg (float): The azimuth angle in degrees. distance (float): The distance of the line segment. bbox (dict): The bounding box coordinates (minx, miny, maxx, maxy).

Returns: shapely.LineString: A LineString object representing the line segment with endpoints clipped by the bounding box.