Companion
object Companion
Properties
Functions
Link copied to clipboard
fun fieldCoordsToScreenCoords(vector2d: Vector2d, canvasWidth: Double = CANVAS_WIDTH, canvasHeight: Double = CANVAS_HEIGHT): Vector2d
Converts field coordinates to screen coordinates.
Link copied to clipboard
Link copied to clipboard
fun screenCoordsToFieldCoords(vector2d: Vector2d, canvasWidth: Double = CANVAS_WIDTH, canvasHeight: Double = CANVAS_HEIGHT): Vector2d
Converts screen coordinates to field coordinates.