splinart.shapes package¶
Submodules¶
splinart.shapes.base module¶
Define basic shapes.
-
splinart.shapes.base.
circle
(center, radius, npoints=50)¶ Discretization of a circle.
- Parameters
center (list(2)) – 2d coordinates of the center.
radius (float) – Radius of the circle.
npoints (int) – Number of discretization points (the default value is 50).
- Returns
np.ndarray – The theta angle.
np.ndarray – The 2d coordinates of the circle.
-
splinart.shapes.base.
line
(begin, end, ypos=0.5, npoints=50)¶ Discretization of a horizontal line.
- Parameters
begin (float) – The left point of the line.
end (float) – The right point of the line.
ypos (float) – The position of the y coordinate (the default value is 0.5).
npoints (int) – Number of discretization points (the default value is 50).
- Returns
The 2d coordinates of the line.
- Return type
np.ndarray
Module contents¶
Shape package