1 /***************************************************************************
2                          qgslinesegment.cpp
3                          -----------------
4     begin                : April 2018
5     copyright            : (C) 2018 by Nyall Dawson
6     email                : nyall dot dawson at gmail dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 #include "qgslinesegment.h"
19 #include "qgsgeometryutils.h"
20 
pointLeftOfLine(const QgsPointXY & point) const21 int QgsLineSegment2D::pointLeftOfLine( const QgsPointXY &point ) const
22 {
23   return QgsGeometryUtils::leftOfLine( point.x(), point.y(), mStart.x(), mStart.y(), mEnd.x(), mEnd.y() );
24 }
25 
26