(goalpost_name, goalpost_radius)
return radius
Compute the radius of a specific goalpost.
Compute the radius of a specific goalpost.
Compute the radius of a specific goalpost .
def _post_radius(goalpost_name, goalpost_radius):
  """Compute the radius of a specific goalpost."""
  radius = goalpost_radius
  if 'top' in goalpost_name:
    radius *= 1.01  # Prevent z-fighting at the corners.
  if 'support' in goalpost_name:
    radius *= _SUPPORT_POST_RATIO  # Suport posts are a bit narrower.
  return radius
def _post_radius ( goalpost_name , goalpost_radius ) : radius = goalpost_radius if 'top' in goalpost_name : radius *= 1.01 # Prevent z-fighting at the corners. if 'support' in goalpost_name : radius *= _SUPPORT_POST_RATIO # Suport posts are a bit narrower. return radius