MCPcopy Create free account
hub / github.com/FastLED/FastLED / Fx2d

Method Fx2d

src/fl/fx/fx2d.h:19–19  ·  view source on GitHub ↗

XYMap holds either a function or a look up table to map x, y coordinates to a 1D index.

Source from the content-addressed store, hash-verified

17 // XYMap holds either a function or a look up table to map x, y coordinates
18 // to a 1D index.
19 Fx2d(const XYMap &xyMap) : Fx(xyMap.getTotal()), mXyMap(xyMap) {}
20 u16 xyMap(u16 x, u16 y) const {
21 return mXyMap.mapToIndex(x, y);
22 }

Callers

nothing calls this directly

Calls 1

getTotalMethod · 0.80

Tested by

no test coverage detected