Skip to content

Commit 8e77598

Browse files
committed
STYLE: Prefer itk::Math::abs for consistency.
1 parent 93708fa commit 8e77598

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/itkSiddonJacobsRayCastInterpolateImageFunction.hxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,23 +264,23 @@ SiddonJacobsRayCastInterpolateImageFunction<TInputImage, TCoordRep>::Evaluate(co
264264
/* Calculate alpha incremental values when the ray intercepts with x, y, and z-planes */
265265
if (rayVector[0] != 0)
266266
{
267-
alphaUx = ctPixelSpacing[0] / fabs(rayVector[0]);
267+
alphaUx = ctPixelSpacing[0] / itk::Math::abs(rayVector[0]);
268268
}
269269
else
270270
{
271271
alphaUx = 999;
272272
}
273273
if (rayVector[1] != 0)
274274
{
275-
alphaUy = ctPixelSpacing[1] / fabs(rayVector[1]);
275+
alphaUy = ctPixelSpacing[1] / itk::Math::abs(rayVector[1]);
276276
}
277277
else
278278
{
279279
alphaUy = 999;
280280
}
281281
if (rayVector[2] != 0)
282282
{
283-
alphaUz = ctPixelSpacing[2] / fabs(rayVector[2]);
283+
alphaUz = ctPixelSpacing[2] / itk::Math::abs(rayVector[2]);
284284
}
285285
else
286286
{

0 commit comments

Comments
 (0)