FastLED 3.10.6
Loading...
Searching...
No Matches

◆ getLocalCoord()

template<typename T>
vec2< i32 > fl::MatrixSlice< T >::getLocalCoord ( i32 x_world,
i32 y_world ) const
inline

Definition at line 627 of file span.h.

627 {
628 // clamp to [mBottomLeft, mTopRight]
631 // convert to local
632 return {x_clamped - mBottomLeft.x, y_clamped - mBottomLeft.y};
633 }
vec2< i32 > mBottomLeft
Definition span.h:658
vec2< i32 > mTopRight
Definition span.h:659
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NO_EXCEPT

References fl::clamp(), fl::FL_NO_EXCEPT, mBottomLeft, and mTopRight.

+ Here is the call graph for this function: