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

extend

Parameters:
Name Type Description
rectangle ol.Rectangle Rectangle.
Source:
  • rectangle.js, line 47

getCenter

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

getHeight

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

getSize

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

getWidth

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

intersects

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

normalize

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

toString

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