We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fc1371 commit 839b99fCopy full SHA for 839b99f
src/hsp3dish/essprite.cpp
@@ -12,6 +12,7 @@
12
#include <stdio.h>
13
#include <stdlib.h>
14
#include <math.h>
15
+#include <float.h>
16
#include <algorithm>
17
18
#include "essprite.h"
@@ -116,8 +117,8 @@ ESVec2 ESRectAxis::getAxis(int index)
116
117
118
// Checks if projections of two rectangles onto an axis overlap
119
bool ESRectAxis::checkAxisOverlap( ESRectAxis *rect1, ESRectAxis *rect2, ESVec2 *axis) {
- double min1 = FLT_MAX, max1 = -FLT_MAX;
120
- double min2 = FLT_MAX, max2 = -FLT_MAX;
+ double min1 = DBL_MAX, max1 = -DBL_MAX;
121
+ double min2 = DBL_MAX, max2 = -DBL_MAX;
122
123
// Project rect1 onto axis
124
for (int i = 0; i < 4; i++) {
0 commit comments