sknano.utils.geometric_shapes.Rectangle

class sknano.utils.geometric_shapes.Rectangle(pmin=None, pmax=None, xmin=None, ymin=None, xmax=None, ymax=None)[source][source]

Abstract data structure representing a rectangle.

New in version 0.3.0.

Parameters:

xmin, ymin : float

xmax, ymax : float

pmin, pmax : sequence, optional

Attributes

a
area
b
center
centroid
pmax
pmin
xmax
xmin
ymax
ymin

Methods

contains_point(point) Check if point is contained within volume of cuboid.
rotate([angle, rot_axis, anchor_point, ...]) Rotate GeometricRegion Points and Vectors.
translate(t[, fix_anchor_points]) Translate GeometricRegions Points and Vectors by Vector t.