Module utils

Source
Expand description

Utilities useful for various generations tasks.

Functionsยง

push_arc
Pushes to out a set of points forming an arc starting at start, ending at end with revolution center at center. The curve is approximated by pushing nsubdivs points. The start and end point are not pushed to out.
push_xy_arc
Pushes a discretized counterclockwise circle to a buffer. The circle is contained on the plane spanned by the x and y axis.
scaled
Returns the transformed version of a vector of points.
transform
Applies in-place a transformation to an array of points.
transformed
Returns the transformed version of a vector of points.