|        |   | 
- builtins.tuple(builtins.object)
 - 
- Rectangle
  
 
 
 
 
  class Rectangle(builtins.tuple) |  
    
|     | 
Rectangle(dimensions: svgen.cartesian.Dimensions, location: svgen.cartesian.point.Point = Point(x=0.0, y=0.0, center=False, idx=-1)) 
  
A definition of a rectangle.   |  
|   | 
- Method resolution order:
 
- Rectangle
 
- builtins.tuple
 
- builtins.object
 
 
 
Methods defined here: 
- __eq__(self, other: object) -> bool
 - Determine if this rectangle is equivalent to another.
  
- __getnewargs__(self)
 - Return self as a plain tuple.  Used by copy and pickle.
  
- __repr__(self)
 - Return a nicely formatted representation string
  
- _asdict(self)
 - Return a new dict which maps field names to their values.
  
- _replace(self, /, **kwds)
 - Return a new Rectangle object replacing specified fields with new values
  
- corner(self, corner: svgen.cartesian.rectangle.corner.RectangleCorner) -> svgen.cartesian.point.Point
 - Get a specific corner of a rectangle.
  
- from_center(self, width_scale: float = 1.0, height_scale: float = 1.0, square: bool = False) -> 'Rectangle'
 - Create a new rectangle from this instance's center.
  
- scale(self, width_scale: float = 1.0, height_scale: float = 1.0) -> 'Rectangle'
 - Scale this rectangle's width and height.
  
- scale_whole(self, scalar: float = 1.0) -> 'Rectangle'
 - Scale width and height of this rectangle equally.
  
- to_square(self, scale: float = 1.0) -> 'Rectangle'
 - Convert this rectangle to a square.
  
- translate(self, move: Union[svgen.cartesian.mutate.Translation, float], *args, **kwargs) -> 'Rectangle'
 - Move a rectangle by a given translation.
  
 
Class methods defined here: 
- _make(iterable) from builtins.type
 - Make a new Rectangle object from a sequence or iterable
  
 
Static methods defined here: 
- __new__(_cls, dimensions: svgen.cartesian.Dimensions, location: svgen.cartesian.point.Point = Point(x=0.0, y=0.0, center=False, idx=-1))
 - Create new instance of Rectangle(dimensions, location)
  
- centered(source: 'Rectangle', width_scale: float = 1.0, height_scale: float = 1.0, square: bool = False) -> 'Rectangle'
 - Create a centered rectangle from another rectangle.
  
- create(width: float, height: float, point: svgen.cartesian.point.Point = Point(x=0.0, y=0.0, center=False, idx=-1)) -> 'Rectangle'
 - Create a rectangle from simple parameters.
  
 
Readonly properties defined here: 
- bottom_left
 
- Get the bottom left corner point.
 
 
- bottom_right
 
- Get the bottom right corner point.
 
 
- center
 
- Get the center location of this rectangle.
 
 
- height
 
- Get the height of this rectangle..
 
 
- origin
 
- Get the origin location for this rectangle.
 
 
- square
 
- Determine if this rectangle is square.
 
 
- top_left
 
- Get the top left corner point.
 
 
- top_right
 
- Get the top right corner point.
 
 
- width
 
- Get the width of this rectangle.
 
 
 
Data descriptors defined here: 
- dimensions
 
- Alias for field number 0
 
 
- location
 
- Alias for field number 1
 
 
 
Data and other attributes defined here: 
- __annotations__ = {'dimensions': <class 'svgen.cartesian.Dimensions'>, 'location': <class 'svgen.cartesian.point.Point'>}
  
- __match_args__ = ('dimensions', 'location')
  
- __orig_bases__ = (<function NamedTuple>,)
  
- _field_defaults = {'location': Point(x=0.0, y=0.0, center=False, idx=-1)}
  
- _fields = ('dimensions', 'location')
  
 
Methods inherited from builtins.tuple: 
- __add__(self, value, /)
 - Return self+value.
  
- __contains__(self, key, /)
 - Return bool(key in self).
  
- __ge__(self, value, /)
 - Return self>=value.
  
- __getattribute__(self, name, /)
 - Return getattr(self, name).
  
- __getitem__(self, key, /)
 - Return self[key].
  
- __gt__(self, value, /)
 - Return self>value.
  
- __hash__(self, /)
 - Return hash(self).
  
- __iter__(self, /)
 - Implement iter(self).
  
- __le__(self, value, /)
 - Return self<=value.
  
- __len__(self, /)
 - Return len(self).
  
- __lt__(self, value, /)
 - Return self<value.
  
- __mul__(self, value, /)
 - Return self*value.
  
- __ne__(self, value, /)
 - Return self!=value.
  
- __rmul__(self, value, /)
 - Return value*self.
  
- count(self, value, /)
 - Return number of occurrences of value.
  
- index(self, value, start=0, stop=9223372036854775807, /)
 - Return first index of value.
 
  
Raises ValueError if the value is not present.  
 
Class methods inherited from builtins.tuple: 
- __class_getitem__(...) from builtins.type
 - See PEP 585
  
 |    |