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

Method compile

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

Source from the content-addressed store, hash-verified

146}
147
148Matrix3x3f TransformFloat::compile() const {
149 Matrix3x3f out;
150 out.m[0][0] = scale_x() * cosf(rotation() * 2.0f * FL_PI);
151 out.m[0][1] = -scale_y() * sinf(rotation() * 2.0f * FL_PI);
152 out.m[0][2] = offset_x();
153 out.m[1][0] = scale_x() * sinf(rotation() * 2.0f * FL_PI);
154 out.m[1][1] = scale_y() * cosf(rotation() * 2.0f * FL_PI);
155 out.m[1][2] = offset_y();
156 out.m[2][2] = 1.0f;
157 return out;
158}
159
160} // namespace fl
161

Callers 15

check_relative_includesFunction · 0.80
run_monitorFunction · 0.80
run_clang_queryFunction · 0.80
check_noexcept.pyFile · 0.80
_find_missing_noexceptFunction · 0.80
stream_compile_onlyFunction · 0.80

Calls 2

cosfFunction · 0.85
sinfFunction · 0.85