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.

RulesetUnitCourt lengthCourt width
fibam28.015.0
nbaft94.050.0
ncaaft94.050.0
nfhsft84.050.0
custom*user-defineduser-defined