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

Method set_scale

src/fl/math/transform.cpp.hpp:138–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136float TransformFloatImpl::scale() const { return fl::min(scale_x, scale_y); }
137
138void TransformFloatImpl::set_scale(float scale) {
139 scale_x = scale;
140 scale_y = scale;
141}
142
143bool TransformFloatImpl::is_identity() const {
144 return (scale_x == 1.0f && scale_y == 1.0f && offset_x == 0.0f &&

Callers 2

setScaleMethod · 0.45
FL_TEST_FILEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected