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 148 of file xypath.cpp.hpp.

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

References fl::make_shared().

+ Here is the call graph for this function: