Skip to content

Commit c353f23

Browse files
epezentbrenocq
authored andcommitted
make ImPlotPoint::Clamp const
1 parent b844d96 commit c353f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

implot.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ struct ImPlotRect {
582582
IMPLOT_API bool Contains(const ImPlotPoint& p) const { return Contains(p.x, p.y); }
583583
IMPLOT_API bool Contains(double x, double y) const { return X.Contains(x) && Y.Contains(y); }
584584
IMPLOT_API ImPlotPoint Size() const { return ImPlotPoint(X.Size(), Y.Size()); }
585-
IMPLOT_API ImPlotPoint Clamp(const ImPlotPoint& p) { return Clamp(p.x, p.y); }
586-
IMPLOT_API ImPlotPoint Clamp(double x, double y) { return ImPlotPoint(X.Clamp(x),Y.Clamp(y)); }
585+
IMPLOT_API ImPlotPoint Clamp(const ImPlotPoint& p) const { return Clamp(p.x, p.y); }
586+
IMPLOT_API ImPlotPoint Clamp(double x, double y) const { return ImPlotPoint(X.Clamp(x),Y.Clamp(y)); }
587587
IMPLOT_API ImPlotPoint Min() const { return ImPlotPoint(X.Min, Y.Min); }
588588
IMPLOT_API ImPlotPoint Max() const { return ImPlotPoint(X.Max, Y.Max); }
589589
};

0 commit comments

Comments
 (0)