Class Circle
the two coordinates of the center
the radius
default [0]
True if the circle is added
False if the circle is deleted
Examples
the circle centered in (0, 0) with radius 1
>>> center = [0., 0.]
>>> radius = 1.
>>> Circle(center, radius)
+--------+
| Circle |
+--------+
- dimension: 2
- center: [0. 0.]
- radius: 1.0
- label: [0]
- type: solid
1
2
the coordinates of the center of the circle
positive float for the radius of the circle
the list of the label of the edge
True if the circle is added and False if the circle is deleted
Methods
|
Compute the distance in the v direction between the circle and the points defined by (x, y). |
Get the bounds of the circle. |
|
|
return a boolean array which defines if a point is inside or outside of the circle. |
test if the number of labels is equal to the number of bounds. |
|
|
visualize the element |
Attributes
|