Skip to content

Commit

Permalink
sipify
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Sep 23, 2021
1 parent 542187d commit 1623d8e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions python/core/auto_generated/geometry/qgsquadrilateral.sip.in
Expand Up @@ -70,6 +70,7 @@ will also be of type Z, even if they are of type Point. In addition,
the z used will be the one of the first point with a Z.
This ensures consistency in point types and the ability to export to a
Polygon or LineString.
M is taken from point ``p1``.

:param p1: first point
:param p2: second point
Expand All @@ -83,7 +84,8 @@ Polygon or LineString.
%Docstring
Construct a QgsQuadrilateral as a rectangle from an extent, defined by
two opposite corner points.
Z is taken from point ``p1``.
Z and M are taken from point ``p1``.
QgsQuadrilateral will have the same dimension as ``p1`` dimension.

:param p1: first point
:param p2: second point
Expand All @@ -93,7 +95,8 @@ Z is taken from point ``p1``.
static QgsQuadrilateral squareFromDiagonal( const QgsPoint &p1, const QgsPoint &p2 ) /HoldGIL/;
%Docstring
Construct a QgsQuadrilateral as a square from a diagonal.
Z is taken from point ``p1``.
Z and M are taken from point ``p1``.
QgsQuadrilateral will have the same dimension as ``p1`` dimension.

:param p1: first point
:param p2: second point
Expand All @@ -103,7 +106,8 @@ Z is taken from point ``p1``.
%Docstring
Construct a QgsQuadrilateral as a rectangle from center point ``center``
and another point ``point``.
Z is taken from ``center`` point.
Z and M are taken from point ``p1``.
QgsQuadrilateral will have the same dimension as ``center`` dimension.

:param center: center point
:param point: corner point
Expand Down
10 changes: 7 additions & 3 deletions src/core/geometry/qgsquadrilateral.h
Expand Up @@ -80,6 +80,7 @@ class CORE_EXPORT QgsQuadrilateral
* the z used will be the one of the first point with a Z.
* This ensures consistency in point types and the ability to export to a
* Polygon or LineString.
* M is taken from point \a p1.
* \param p1 first point
* \param p2 second point
* \param p3 third point
Expand All @@ -91,7 +92,8 @@ class CORE_EXPORT QgsQuadrilateral
/**
* Construct a QgsQuadrilateral as a rectangle from an extent, defined by
* two opposite corner points.
* Z is taken from point \a p1.
* Z and M are taken from point \a p1.
* QgsQuadrilateral will have the same dimension as \a p1 dimension.
* \param p1 first point
* \param p2 second point
*/
Expand All @@ -107,7 +109,8 @@ class CORE_EXPORT QgsQuadrilateral

/**
* Construct a QgsQuadrilateral as a square from a diagonal.
* Z is taken from point \a p1.
* Z and M are taken from point \a p1.
* QgsQuadrilateral will have the same dimension as \a p1 dimension.
* \param p1 first point
* \param p2 second point
*/
Expand All @@ -116,7 +119,8 @@ class CORE_EXPORT QgsQuadrilateral
/**
* Construct a QgsQuadrilateral as a rectangle from center point \a center
* and another point \a point.
* Z is taken from \a center point.
* Z and M are taken from point \a p1.
* QgsQuadrilateral will have the same dimension as \a center dimension.
* \param center center point
* \param point corner point
*/
Expand Down

0 comments on commit 1623d8e

Please sign in to comment.