Skip to content

Commit

Permalink
[Issue JdeRobot#792] Removes compilation warnings from tool rgbdCalib…
Browse files Browse the repository at this point in the history
…rator
  • Loading branch information
lr-morales committed Jul 29, 2017
1 parent b1e8c6c commit 22c06f5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/tools/rgbdCalibrator/geoUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ namespace rgbdCalibrator

bool GeoUtils::Line3D::isPointInLine (HPoint3D p)
{
return ((p.X - point.X)/vector.X) ==
((p.Y - point.Y)/vector.Y) ==
((p.Z - point.Z)/vector.Z);
return (
((p.X - point.X)/vector.X) ==
(
((p.Y - point.Y)/vector.Y) ==
((p.Z - point.Z)/vector.Z)
)
);
}

HPoint3D GeoUtils::Line3D::getPointByZ (float z)
Expand Down

0 comments on commit 22c06f5

Please sign in to comment.