basketball_two_point_range()
for more information).Start by getting the distance from the center of the basket to a corner
three-point shot. This is referred to as start_y
basketball_three_point_line(
basket_center_to_baseline = 0,
basket_center_to_corner_three = 0,
line_thickness = 0,
three_point_line_radius = 0
)
A data frame of the bounding coordinates of the three-point line
The distance from the center of the basket ring to the inner edge of the baseline
The distance from the center of the basket ring to the outer edge of the three-point line in the corner in the court's specified units
The thickness of the three-point line
The outer radius of the arc portion of the three-point line
Next, get the starting angle with which to trace out the two-point range.
Taking the distance start_y to be a y coordinate, and the radius of the arc
of the three-point line to be a radius, we the sine of the starting angle is
given as start_y / three_point_arc_radius
As the TV-right angle of the start of the arc is what's drawn here, the
starting and ending angles need to be adjusted relative to 1 radian (the arc
opens to the right, like a (
character)
The starting angle is therefore given as 1 - angle
, and the ending
angle is 1 + angle