setRadians Method

Reinitialize this rectangle using angles specified in radians.

setRadians(west: number = 0, south: number = 0, east: number = 0, north: number = 0): void

note If north is less than south, they will be swapped.

Parameter Type Description
west number The western longitude in radians, in [-pi, pi].
south number The southern latitude in radians, in [-pi/2, pi/2].
east number The eastern latitude in radians, in [-pi, pi].
north number The northern latitude in radians, in [-pi/2, pi/2].

Returns - void

Defined in

Last Updated: 30 November, 2023