Skip to content

Commit 07b94b2

Browse files
author
timlinux
committedFeb 12, 2008

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed
 

‎src/core/qgspoint.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int QgsPoint::onSegment(const QgsPoint& a, const QgsPoint& b) const
9999
//algorithm from 'graphics GEMS', A. Paeth: 'A Fast 2D Point-on-line test'
100100
if(
101101
fabs( (b.y() - a.y()) * (m_x - a.x()) - (m_y - a.y()) * (b.x() - a.x())) \
102-
>= maxValue( fabs(b.x() - a.x()), fabs(b.y() - a.y()))
102+
>= qMax( fabs(b.x() - a.x()), fabs(b.y() - a.y()))
103103
)
104104
{
105105
return 0;
@@ -123,15 +123,3 @@ int QgsPoint::onSegment(const QgsPoint& a, const QgsPoint& b) const
123123

124124
return 2;
125125
}
126-
127-
double QgsPoint::maxValue(double a, double b) const
128-
{
129-
if(b > a)
130-
{
131-
return b;
132-
}
133-
else
134-
{
135-
return a;
136-
}
137-
}

‎src/core/qgspoint.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ class CORE_EXPORT QgsPoint
127127
//! y coordinate
128128
double m_y;
129129

130-
//! little helper function that returns the maximum of
131-
//! two doubles (or a in case of equality)
132-
double maxValue(double a, double b) const;
133130

134131
}; // class QgsPOint
135132

0 commit comments

Comments
 (0)
Please sign in to comment.