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

Method getParentCoord

src/fl/stl/span.h:598–600  ·  view source on GitHub ↗

outputs a vec2 but takes x,y as inputs

Source from the content-addressed store, hash-verified

596
597 // outputs a vec2 but takes x,y as inputs
598 vec2<i32> getParentCoord(i32 x_local, i32 y_local) const FL_NOEXCEPT {
599 return {x_local + mBottomLeft.x, y_local + mBottomLeft.y};
600 }
601
602 vec2<i32> getLocalCoord(i32 x_world, i32 y_world) const FL_NOEXCEPT {
603 // clamp to [mBottomLeft, mTopRight]

Callers 1

FL_TEST_FILEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected