Make PathArcTo accept counter-clockwise angles (#4030, #3491)

This commit is contained in:
thedmd
2021-04-14 20:07:23 +02:00
committed by ocornut
parent 5fed6bdc72
commit 690a90bd35
3 changed files with 47 additions and 30 deletions

View File

@ -371,6 +371,7 @@ static inline float ImPow(float x, float y) { return powf(x, y); }
static inline double ImPow(double x, double y) { return pow(x, y); }
static inline float ImLog(float x) { return logf(x); } // DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision
static inline double ImLog(double x) { return log(x); }
static inline int ImAbs(int x) { return x < 0 ? -x : x; }
static inline float ImAbs(float x) { return fabsf(x); }
static inline double ImAbs(double x) { return fabs(x); }
static inline float ImSign(float x) { return (x < 0.0f) ? -1.0f : ((x > 0.0f) ? 1.0f : 0.0f); } // Sign operator - returns -1, 0 or 1 based on sign of argument