PositionTranslator

Provides positional translations.

Functions

Link copied to clipboard

Determine the center point of an object in an area, given a position.

fun centerOfObjectInArea(area: Dimension, normalizedX: Double, normalizedY: Double): Point

Determine the center point of an object in an area, given a normalizedX and normalizedY.

Link copied to clipboard

Determine the top-left location of an obj in an area, given a position.

fun topLeftOfObjectInArea(area: Dimension, obj: Dimension, normalizedX: Double, normalizedY: Double): Point

Determine the top-left location of an obj in an area, given a normalizedX and normalizedY.