We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27cff50 commit 5dc4bccCopy full SHA for 5dc4bcc
implot.h
@@ -575,7 +575,7 @@ struct ImPlotRect {
575
bool Contains(const ImPlotPoint& p) const { return Contains(p.x, p.y); }
576
bool Contains(double x, double y) const { return X.Contains(x) && Y.Contains(y); }
577
ImPlotPoint Size() const { return ImPlotPoint(X.Size(), Y.Size()); }
578
- ImPlotPoint Clamp(const ImPlotPoint& p) { return Clamp(p.x, p.y); }
+ ImPlotPoint Clamp(const ImPlotPoint& p) const { return Clamp(p.x, p.y); }
579
ImPlotPoint Clamp(double x, double y) const { return ImPlotPoint(X.Clamp(x),Y.Clamp(y)); }
580
ImPlotPoint Min() const { return ImPlotPoint(X.Min, Y.Min); }
581
ImPlotPoint Max() const { return ImPlotPoint(X.Max, Y.Max); }
0 commit comments