sknano.core.geometric_regions.Geometric2DRegion¶
-
class
sknano.core.geometric_regions.
Geometric2DRegion
[source][source]¶ Abstract base class for representing 2D geometric regions.
Attributes
area
Area of 2D geometric region. center
Alias for centroid
.centroid
Centroid of geometric region. fmtstr
Format string. measure
Alias for area
, which is the measure of a 2D geometric region.Methods
center_centroid
()Center centroid
on origin.contains
(point)Test region membership of point in GeometricRegion
.rotate
([angle, axis, anchor_point, ...])Rotate GeometricRegion
points
andvectors
.todict
()Return dict
of constructor parameters.translate
(t[, fix_anchor_points])Translate GeometricRegion
points
andvectors
byVector
t.