sec_interp.core.services.drillhole.projection_engine module

Pure geometric projection logic for drillhole operations.

class sec_interp.core.services.drillhole.projection_engine.ProjectionEngine

Bases: object

Encapsulates geometric projection logic (pure math).

static project_point_to_line(pt: tuple[float, float], line_points: list[tuple[float, float]]) → tuple[float, float]

Project point to line and return (dist_along, offset).

Parameters:
  • pt – The (x, y) point to project.

  • line_points – Section line vertices as (x, y) tuples.

Returns:

Tuple of (distance_along_line, offset_from_line).