Skip to content

Commit

Permalink
Exclude MathUtils from sip bindings
Browse files Browse the repository at this point in the history
We don't want these part of stable API - this namespace really shouldn't
exist, as it mostly contains code which is duplicated in other
parts of the API (with better maintained and tested versions).
  • Loading branch information
nyalldawson committed Aug 29, 2017
1 parent 9498791 commit 9e96205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion python/analysis/analysis_auto.sip
Expand Up @@ -45,4 +45,3 @@
%Include vector/qgsgeometrysnapper.sip
%Include network/qgsgraphdirector.sip
%Include network/qgsvectorlayerdirector.sip
%Include interpolation/MathUtils.sip
2 changes: 2 additions & 0 deletions src/analysis/interpolation/MathUtils.h
Expand Up @@ -23,6 +23,8 @@
class QgsPoint;
class Vector3D;

#define SIP_NO_FILE

namespace MathUtils
{
//! Calculates the barycentric coordinates of a point (x,y) with respect to p1, p2, p3 and stores the three barycentric coordinates in 'result'. Thus the u-coordinate is stored in result::x, the v-coordinate in result::y and the w-coordinate in result::z. Attention: p1, p2 and p3 have to be ordered counterclockwise
Expand Down

0 comments on commit 9e96205

Please sign in to comment.