nba-shot-zones
v1.0.1
Published
Compute shot zones from x,y coordindates
Downloads
6
Readme
NBA shot zones
Compute shot zones from x,y coordindates
Usage
import { getZones, getZoneFromShot } from 'nba-shot-zones'
const zones = getZones() // ['restricted area', 'low post'...]
const zone = getZoneFromShot({ x: -18.5, y: 13.2 }) // 'midrange (upper left)'