Class Parallelogram
the coordinates of the first point of the parallelogram
the coordinates of the first vector
the coordinates of the second vector
four integers (default [0, 0, 0, 0])
True if the parallelogram is added
False if the parallelogram is deleted
Examples
the square [0,1]x[0,1]
>>> point = [0., 0.]
>>> vecta = [1., 0.]
>>> vectb = [0., 1.]
>>> Parallelogram(point, vecta, vectb)
+---------------+
| Parallelogram |
+---------------+
- dimension: 2
- start point: [0. 0.]
- v1: [1. 0.]
- v2: [0. 1.]
- label: [0, 0, 0, 0]
- type: solid
4
2
the coordinates of the first point of the parallelogram
the coordinates of the first vector
the coordinates of the second vector
the list of the label of the edge
True if the parallelogram is added and False if the parallelogram is deleted
Methods
|
Compute the distance in the v direction between the parallelogram and the points defined by (x, y). |
return the bounds of the parallelogram. |
|
|
return a boolean array which defines if a point is inside or outside of the parallelogram. |
test if the number of labels is equal to the number of bounds. |
|
|
visualize the element |
Attributes
|