fieldCoordsToScreenCoords

fun fieldCoordsToScreenCoords(vector2d: Vector2d, canvasWidth: Double = CANVAS_WIDTH, canvasHeight: Double = CANVAS_HEIGHT): Vector2d

Converts field coordinates to screen coordinates.

Return

The screen coordinates as a Vector2d object.

Parameters

vector2d

The field coordinates as a Vector2d object.

canvasWidth

The width of the canvas.

canvasHeight

The height of the canvas.