James (Peilun) Li | a70e575 | 2024-09-18 20:43:00 -0700 | [diff] [blame] | 1 | // Conversion constants to meters |
2 | export const IN_TO_M = 0.0254; | ||||
3 | export const FT_TO_M = 0.3048; | ||||
4 | // Dimensions of the field in meters | ||||
5 | // Numbers are slightly hand-tuned to match the PNG that we are using. | ||||
6 | export const FIELD_WIDTH = 26 * FT_TO_M + 11.25 * IN_TO_M; | ||||
7 | export const FIELD_LENGTH = 54 * FT_TO_M + 3.25 * IN_TO_M; | ||||
8 |