Class: ol.Rectangle

ol.Rectangle

new Rectangle

Parameters:
Name Type Description
minX number Minimum X.
minY number Minimum Y.
maxX number Maximum X.
maxY number Maximum Y.
Source:
  • rectangle.js, line 16

Members

maxX :number

Source:
  • rectangle.js, line 34

maxY :number

Source:
  • rectangle.js, line 39

minX :number

Source:
  • rectangle.js, line 24

minY :number

Source:
  • rectangle.js, line 29

Methods

getCenter

Source:
  • rectangle.js, line 47
Returns:
Center.
Type
ol.Coordinate

getHeight

Source:
  • rectangle.js, line 56
Returns:
Height.
Type
number

getSize

Source:
  • rectangle.js, line 64
Returns:
Size.
Type
ol.Size

getWidth

Source:
  • rectangle.js, line 72
Returns:
Width.
Type
number

intersects

Parameters:
Name Type Description
rectangle ol.Rectangle Rectangle.
Source:
  • rectangle.js, line 81
Returns:
Intersects.
Type
boolean

normalize

Parameters:
Name Type Description
coordinate ol.Coordinate Coordinate.
Source:
  • rectangle.js, line 93
Returns:
Coordinate.
Type
ol.Coordinate

toString

Source:
  • rectangle.js, line 103
Returns:
String.
Type
string