Coordinate System & Rulesets
Coordinate system
OCF positions are expressed on two axes, both centered on midcourt:
x: −max … 0 … +max (viewer's left → center → viewer's right)
y: −max … 0 … +max (defense basket → midline → offense basket)Units are real-world: meters for FIBA,feet for NBA, NCAA, and NFHS.
Supported rulesets
Each ruleset determines the coordinate unit and the court dimensions used to resolve named positions (e.g. top_of_the_key) into concrete coordinates.
| Ruleset | Unit | Court length | Court width |
|---|---|---|---|
fiba | m | 28.0 | 15.0 |
nba | ft | 94.0 | 50.0 |
ncaa | ft | 94.0 | 50.0 |
nfhs | ft | 84.0 | 50.0 |
custom | * | user-defined | user-defined |