Skip to content

Commit

Permalink
Update rect.rst with more info on points.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-lemon authored Jul 24, 2023
1 parent ba93c7c commit 9714c13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/rect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The following remarks are also valid for :ref:`IRect` objects:

* A rectangle in the sense of (Py-) MuPDF **(and PDF)** always has **borders parallel to the x- resp. y-axis**. A general orthogonal tetragon **is not a rectangle** -- in contrast to the mathematical definition.
* The constructing points can be (almost! -- see below) anywhere in the plane -- they need not even be different, and e.g. "top left" need not be the geometrical "north-western" point.
* Units are in points, where 72 points is 1 inch.
* For any given quadruple of numbers, the geometrically "same" rectangle can be defined in four different ways:
1. Rect(P\ :sub:`(x0,y0)`, P\ :sub:`(x1,y1)`\ )
2. Rect(P\ :sub:`(x1,y1)`, P\ :sub:`(x0,y0)`\ )
Expand Down

0 comments on commit 9714c13

Please sign in to comment.