View source: R/features-basketball.R
basketball_basket_ring | R Documentation |
An explanation of the math used to generate the basket ring (and its connecting portion that attaches the ring to the backboard) is walked through below using NBA dimensions, but is generalized in the code
basketball_basket_ring(
basket_ring_connector_width = 0,
backboard_face_to_ring_cent = 0,
basket_ring_inner_radius = 0,
basket_ring_thickness = 0
)
basket_ring_connector_width |
The width of the basket ring connector |
backboard_face_to_ring_cent |
How far off the face of the backboard the center of the basket ring's circle is located |
basket_ring_inner_radius |
The inner radius of the circular part of the basket ring |
basket_ring_thickness |
The thickness of the basket ring's circular part |
The connector has a width of 7", so 3.5" are on each side of the x axis. The ring has a radius of 9", so the arcsine of these measurements should give the angle at which point the ring and connector connect
A data frame of the boundary of the basket ring and connector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.