fromRadians

fun fromRadians(west: Double? = definedExternally, south: Double? = definedExternally, east: Double? = definedExternally, north: Double? = definedExternally, result: Rectangle? = definedExternally): Rectangle(source)

Creates a rectangle given the boundary longitude and latitude in radians.

const rectangle = Rectangle.fromRadians(0.0, Math.PI/4, Math.PI/8, 3*Math.PI/4);

Return

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

Parameters

west

The westernmost longitude in radians in the range -Math.PI, Math.PI. Default value - 0.0

south

The southernmost latitude in radians in the range -Math.PI/2, Math.PI/2. Default value - 0.0

east

The easternmost longitude in radians in the range -Math.PI, Math.PI. Default value - 0.0

north

The northernmost latitude in radians in the range -Math.PI/2, Math.PI/2. Default value - 0.0

result

The object onto which to store the result, or undefined if a new instance should be created.

See also