22 for (
auto &p : points) {
23 p.x = map_range<float, float>(p.x, 0.0f, width - 1, -1.0f, 1.0f);
24 p.y = map_range<float, float>(p.y, 0.0f, height - 1, -1.0f, 1.0f);
fl::vector< XYPathPtr > CreateXYPaths(int width, int height)
void push_back(const T &value)
void push_back(const T &value)
static XYPathPtr NewPhyllotaxisPath(u16 width=0, u16 height=0, const fl::shared_ptr< PhyllotaxisParams > &args=fl::make_shared< PhyllotaxisParams >())
static XYPathPtr NewHeartPath()
static XYPathPtr NewArchimedeanSpiralPath(u16 width, u16 height)
static XYPathPtr NewGielisCurvePath(u16 width=0, u16 height=0, const fl::shared_ptr< GielisCurveParams > ¶ms=fl::make_shared< GielisCurveParams >())
static XYPathPtr NewCatmullRomPath(u16 width=0, u16 height=0, const fl::shared_ptr< CatmullRomParams > ¶ms=fl::make_shared< CatmullRomParams >())
static XYPathPtr NewRosePath(u16 width=0, u16 height=0, const fl::shared_ptr< RosePathParams > ¶ms=fl::make_shared< RosePathParams >())
static XYPathPtr NewCirclePath()
fl::shared_ptr< CatmullRomParams > make_path(int width, int height)
InlinedVector< T, INLINED_SIZE > vector_inlined
shared_ptr< T > make_shared(Args &&... args)
HeapVector< T, Allocator > vector