def only_half_radius(
    subsampled_radius: float, full_diameter: float, radius_constraint: float
):
    """
    Check if radius is smaller than fraction of full radius.
    """
    assert 0.0 <= radius_constraint <= 1.0
    return subsampled_radius <= ((full_diameter / 2) * radius_constraint)