Geometric2DRegion

class sknano.core.geometric_regions.Geometric2DRegion[source] [edit on github][source]

Bases: sknano.core.geometric_regions.GeometricRegion, sknano.core.geometric_regions.GeometricTransformsMixin

Abstract base class for representing 2D geometric regions.

Attributes

area Area of 2D geometric region.
bounding_box Bounding Cuboid.
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.
ndim Return the dimensions.
pmax Point at maximum extent.
pmin Point at minimum extent.

Methods

center_centroid() Center centroid on origin.
contains(point) Test region membership of point in GeometricRegion.
get_points() Return list of points from GeometricRegion.points and GeometricRegion.vectors
rotate(**kwargs) Rotate GeometricRegion points and vectors.
todict() Return dict of constructor parameters.
translate(t[, fix_anchor_points]) Translate GeometricRegion points and vectors by Vector t.

Attributes Summary

area Area of 2D geometric region.
bounding_box Bounding Cuboid.
measure Alias for area, which is the measure of a 2D geometric region.
ndim Return the dimensions.

Attributes Documentation

area

Area of 2D geometric region.

bounding_box

Bounding Cuboid.

measure

Alias for area, which is the measure of a 2D geometric region.

ndim

Return the dimensions.