import math


def ray_param(v_int: float, theta: float) -> float:
    """
    Calculates the ray parameter P.

    :param v_int: Interval velocity
    :param theta: Angle of incidence (deg)
    :return:
        p: Ray parameter
    """

    # Cast inputs to floats
    theta = float(theta)
    v = float(v_int)

    p = math.sin(math.radians(theta)) / v  # ray parameter calculation

    return p