FastLED 3.9.15
Loading...
Searching...
No Matches

◆ NewLinePath() [2/2]

XYPathPtr fl::XYPath::NewLinePath ( float x0,
float y0,
float x1,
float y1 )
static

Definition at line 147 of file xypath.cpp.

147 {
148 LinePathParamsPtr p = fl::make_shared<LinePathParams>();
149 auto &params = *p;
150 params.x0 = x0;
151 params.y0 = y0;
152 params.x1 = x1;
153 params.y1 = y1;
154 auto path = fl::make_shared<LinePath>(p);
155 return fl::make_shared<XYPath>(path);
156}
shared_ptr< T > make_shared(Args &&... args)
Definition shared_ptr.h:348

References fl::make_shared().

+ Here is the call graph for this function: