summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWoazboat <f.kargl@posteo.de>2015-04-29 17:17:43 +0200
committerWoazboat <f.kargl@posteo.de>2015-04-29 17:17:43 +0200
commitc31092c2d51087a495e44399a9d17375b168fcb1 (patch)
tree902b5bad292fe0294b575bf98e482310c683464e
parentbraces in Tracer::mNormalTable initializer in separate lines (diff)
downloadcuberite-c31092c2d51087a495e44399a9d17375b168fcb1.tar
cuberite-c31092c2d51087a495e44399a9d17375b168fcb1.tar.gz
cuberite-c31092c2d51087a495e44399a9d17375b168fcb1.tar.bz2
cuberite-c31092c2d51087a495e44399a9d17375b168fcb1.tar.lz
cuberite-c31092c2d51087a495e44399a9d17375b168fcb1.tar.xz
cuberite-c31092c2d51087a495e44399a9d17375b168fcb1.tar.zst
cuberite-c31092c2d51087a495e44399a9d17375b168fcb1.zip
Diffstat (limited to '')
-rw-r--r--src/Tracer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Tracer.cpp b/src/Tracer.cpp
index 692772b04..b788d0861 100644
--- a/src/Tracer.cpp
+++ b/src/Tracer.cpp
@@ -86,7 +86,7 @@ void cTracer::SetValues(const Vector3f & a_Start, const Vector3f & a_Direction)
// same but y-direction
if (dir.x != 0.f)
{
- tDelta.x = 1 / fabs(dir.x);
+ tDelta.x = 1 / std::abs(dir.x);
}
else
{
@@ -94,7 +94,7 @@ void cTracer::SetValues(const Vector3f & a_Start, const Vector3f & a_Direction)
}
if (dir.y != 0.f)
{
- tDelta.y = 1 / fabs(dir.y);
+ tDelta.y = 1 / std::abs(dir.y);
}
else
{
@@ -102,7 +102,7 @@ void cTracer::SetValues(const Vector3f & a_Start, const Vector3f & a_Direction)
}
if (dir.z != 0.f)
{
- tDelta.z = 1 / fabs(dir.z);
+ tDelta.z = 1 / std::abs(dir.z);
}
else
{
@@ -312,7 +312,7 @@ int cTracer::intersect3D_SegmentPlane(const Vector3f & a_Origin, const Vector3f
float D = a_PlaneNormal.Dot(u); // dot(Pn.n, u);
float N = -(a_PlaneNormal.Dot(w)); // -dot(a_Plane.n, w);
- if (fabs(D) < FLOAT_EPSILON)
+ if (std::abs(D) < FLOAT_EPSILON)
{
// segment is parallel to plane
if (N == 0.0)