fromDegrees
fun fromDegrees(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 degrees.
const rectangle = Rectangle.fromDegrees(0.0, 20.0, 10.0, 30.0);
Content copied to clipboard
Return
The modified result parameter or a new Rectangle instance if none was provided.
Parameters
west
The westernmost longitude in degrees in the range -180.0, 180.0. Default value - 0.0
south
The southernmost latitude in degrees in the range -90.0, 90.0. Default value - 0.0
east
The easternmost longitude in degrees in the range -180.0, 180.0. Default value - 0.0
north
The northernmost latitude in degrees in the range -90.0, 90.0. Default value - 0.0
result
The object onto which to store the result, or undefined if a new instance should be created.