center

fun center(rectangle: Rectangle, result: Cartographic? = definedExternally): Cartographic(source)

Computes the center of a rectangle.

Return

The modified result parameter or a new Cartographic instance if none was provided.

Parameters

rectangle

The rectangle for which to find the center

result

The object onto which to store the result.

See also