MCPcopy Create free account
hub / github.com/cinder/Cinder / ImRotate

Function ImRotate

include/imgui/imgui_internal.h:524–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522inline int ImModPositive(int a, int b) { return (a + b) % b; }
523inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; }
524inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); }
525inline float ImLinearSweep(float current, float target, float speed) { if (current < target) return ImMin(current + speed, target); if (current > target) return ImMax(current - speed, target); return current; }
526inline float ImLinearRemapClamp(float s0, float s1, float d0, float d1, float x) { return ImSaturate((x - s0) / (s1 - s0)) * (d1 - d0) + d0; }
527inline ImVec2 ImMul(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); }

Callers 3

ColorPicker4Method · 0.85

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected