def transit_x_axis_intercept(px: float, py: float, ox: float, oy: float) -> float:
    """Given an object at position px, py and an observer as ox, oy this returns the
    value on the x axis of the transit line."""
    x = px + py * (ox - px) / (py - oy)
    return x