def METHOD_NAME(
    angles,
    inboard_offset_degree,
    outboard_offset_degree,
    inboard_offset,
    outboard_offset,
):
    """Calculate the magnitude of the offset at each angle."""
    offsets = np.empty_like(angles)
    # All angles less than inboard_offset_degree set to min offset
    constant_minor_offset_idxs = np.logical_or(
        angles < inboard_offset_degree, angles > (2 * np.pi - inboard_offset_degree)
    )
    offsets[constant_minor_offset_idxs] = inboard_offset
    # All angles greater than outboard_offset_degree set to max offset
    constant_major_offset_idxs = np.logical_and(
        angles > outboard_offset_degree, angles < 2 * np.pi - outboard_offset_degree
    )
    offsets[constant_major_offset_idxs] = outboard_offset
    variable_offset_idxs = np.logical_not(
        np.logical_or(constant_minor_offset_idxs, constant_major_offset_idxs)
    )
    offsets[variable_offset_idxs] = _calculate_variable_offset_magnitudes(
        angles[variable_offset_idxs],
        inboard_offset_degree,
        outboard_offset_degree,
        inboard_offset,
        outboard_offset,
    )
    return offsets