sknano.core.geometric_regions.Circle

class sknano.core.geometric_regions.Circle(center=None, r=1.0)[source][source]

Geometric2DRegion for a circle.

New in version 0.3.0.

Represents the bounded region with center \((h, k)\) and radius \(r\).

Parameters:

center : array_like, optional

Center point \((h, k)\) of circle.

r : float, optional

Radius \(r\) of circle.

Notes

Calling Circle with no parameters is equivalent to Circle(center=[0, 0], r=1.0).

Attributes

area Circle area, \(A=\pi r^2\).
center Center point \((h, k)\) of circle.
centroid Alias for center.
fmtstr Format string.
measure Alias for area, which is the measure of a 2D geometric region.
r Circle radius, \(r\).

Methods

center_centroid() Center centroid on origin.
contains(point) Test region membership of point in Circle.
rotate([angle, axis, anchor_point, ...]) Rotate GeometricRegion points and vectors.
todict() Returns a dict of the Circle constructor parameters.
translate(t[, fix_anchor_points]) Translate GeometricRegion points and vectors by Vector t.