libpysal.cg.
Rectangle
(left, lower, right, upper)[source]¶Geometric representation of rectangle objects.
Minimum x-value of the rectangle
Minimum y-value of the rectangle
Maximum x-value of the rectangle
Maximum y-value of the rectangle
Methods
|
Moves the rectangle center to a new specified point. |
|
Rescales the rectangle around its center. |
__init__
(self, left, lower, right, upper)[source]¶Returns a Rectangle object.
__init__(number, number, number, number) -> Rectangle
Examples
>>> r = Rectangle(-4, 3, 10, 17)
>>> r.left #minx
-4.0
>>> r.lower #miny
3.0
>>> r.right #maxx
10.0
>>> r.upper #maxy
17.0
Methods
|
Returns a Rectangle object. |
|
Moves the rectangle center to a new specified point. |
|
Rescales the rectangle around its center. |
Attributes
|
Returns the area of the Rectangle. |
|
Returns the height of the Rectangle. |
|
Returns the width of the Rectangle. |