diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-20 19:24:49 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-20 19:24:49 -0300 |
commit | ee0f53df52d88ca57079579f3f3e943e7e40f53a (patch) | |
tree | fcf670f1e8aec411c6deaf97e9fc77bf5c195f31 /core/math/quick_hull.cpp | |
parent | 72a02555850016ab792cf498c5370983d3b72832 (diff) | |
parent | 6f4f9aa6ded6da027c84cc466c767334dc3d3362 (diff) | |
download | redot-engine-ee0f53df52d88ca57079579f3f3e943e7e40f53a.tar.gz |
Merge pull request #7528 from tagcup/real_t_float_fixes
Use real_t rather than float or double in generic functions (core/mat…
Diffstat (limited to 'core/math/quick_hull.cpp')
-rw-r--r-- | core/math/quick_hull.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/quick_hull.cpp b/core/math/quick_hull.cpp index 756e48d0b4..32fc0e01e8 100644 --- a/core/math/quick_hull.cpp +++ b/core/math/quick_hull.cpp @@ -86,7 +86,7 @@ Error QuickHull::build(const Vector<Vector3>& p_points, Geometry::MeshData &r_me if (!valid_points[i]) continue; - float d = p_points[i][longest_axis]; + real_t d = p_points[i][longest_axis]; if (i==0 || d < min) { simplex[0]=i; @@ -105,7 +105,7 @@ Error QuickHull::build(const Vector<Vector3>& p_points, Geometry::MeshData &r_me { - float maxd; + real_t maxd; Vector3 rel12 = p_points[simplex[0]] - p_points[simplex[1]]; for(int i=0;i<p_points.size();i++) { @@ -127,7 +127,7 @@ Error QuickHull::build(const Vector<Vector3>& p_points, Geometry::MeshData &r_me //fourth vertex is the one most further away from the plane { - float maxd; + real_t maxd; Plane p(p_points[simplex[0]],p_points[simplex[1]],p_points[simplex[2]]); for(int i=0;i<p_points.size();i++) { |