resolve warning C4305: use decimal(0.00001) ctor style
Signed-off-by: DNKpp <DNKpp2011@gmail.com>
This commit is contained in:
parent
9a0fc9eb18
commit
70091bcae7
|
@ -124,7 +124,7 @@ bool AABB::testRayIntersect(const Ray& ray) const {
|
|||
|
||||
// Add in an epsilon term to counteract arithmetic errors when segment is
|
||||
// (near) parallel to a coordinate axis (see text for detail)
|
||||
const decimal epsilon = 0.00001;
|
||||
const decimal epsilon = decimal(0.00001);
|
||||
adx += epsilon;
|
||||
ady += epsilon;
|
||||
adz += epsilon;
|
||||
|
|
Loading…
Reference in New Issue
Block a user