Class Ellipse
the two coordinates of the center
a vector
a second vector (v1 and v2 have to be othogonal)
one integer (default [0])
True if the ellipse is added
False if the ellipse is deleted
Examples
the ellipse centered in (0, 0) with v1=[2,0], v2=[0,1]
>>> center = [0., 0.]
>>> v1 = [2., 0.]
>>> v2 = [0., 1.]
>>> Ellipse(center, v1, v2)
+---------+
| Ellipse |
+---------+
- dimension: 2
- center: [0. 0.]
- v1: [2. 0.]
- v2: [0. 1.]
- label: [0]
- type: solid
1
2
the coordinates of the center of the ellipse
the coordinates of the first vector
the coordinates of the second vector
the list of the label of the edge
True if the ellipse is added and False if the ellipse is deleted
Methods
|
Compute the distance in the v direction between the ellipse and the points defined by (x, y). |
Get the bounds of the ellipse. |
|
|
return a boolean array which defines if a point is inside or outside of the ellipse. |
test if the number of labels is equal to the number of bounds. |
|
|
visualize the element |
Attributes
|