vispy.geometry.rect.
Rect
Bases: object
object
Representation of a rectangular area in a 2D coordinate system.
Can be in the form Rect(x, y, w, h), Rect(pos, size), or Rect(Rect).
bottom
center
contains
Query if the rectangle contains points
X coordinate.
Y coordinate.
True if the point is within the rectangle.
flipped
Return a Rect with the same bounds but with axes inverted
Flip the X axis.
Flip the Y axis.
The flipped rectangle.
height
left
normalized
Return a Rect covering the same area, but with height and width guaranteed to be positive.
padded
Return a new Rect padded (smaller) by padding on all sides
The padding.
The padded rectangle.
pos
right
size
top
width