splinart.shapes package#

Submodules#

splinart.shapes.base module#

Define basic shapes.

splinart.shapes.base.circle(center, radius, npoints=50)#

Discretization of a circle.

Parameters:
centerlist(2)

2d coordinates of the center.

radiusfloat

Radius of the circle.

npointsint

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:
beginfloat

The left point of the line.

endfloat

The right point of the line.

yposfloat

The position of the y coordinate (the default value is 0.5).

npointsint

Number of discretization points (the default value is 50).

Returns:
np.ndarray

The 2d coordinates of the line.

Module contents#

Shape package.

splinart.shapes.circle(center, radius, npoints=50)#

Discretization of a circle.

Parameters:
centerlist(2)

2d coordinates of the center.

radiusfloat

Radius of the circle.

npointsint

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.line(begin, end, ypos=0.5, npoints=50)#

Discretization of a horizontal line.

Parameters:
beginfloat

The left point of the line.

endfloat

The right point of the line.

yposfloat

The position of the y coordinate (the default value is 0.5).

npointsint

Number of discretization points (the default value is 50).

Returns:
np.ndarray

The 2d coordinates of the line.