diff options
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_parallelogram.lua')
-rw-r--r-- | macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_parallelogram.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_parallelogram.lua b/macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_parallelogram.lua index 386eb023e0..5ce1d2a9a4 100644 --- a/macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_parallelogram.lua +++ b/macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_parallelogram.lua @@ -1,6 +1,6 @@ -- tkz_elements_parallelogram.lua --- date 2024/01/16 --- version 1.82c +-- date 2024/02/04 +-- version 2.00c -- Copyright 2024 Alain Matthes -- This work may be distributed and/or modified under the -- conditions of the LaTeX Project Public License, either version 1.3 @@ -17,11 +17,10 @@ parallelogram = {} function parallelogram: new (za, zb, zc, zd) - local d,epsilon - epsilon = 10^(-8) + local d local zi = midpoint_ (za,zc) local zj = midpoint_ (zb,zd) - if point.abs (zj-zi) < epsilon then else error ("it's not a parallelogram") + if point.abs (zj-zi) < tkz_epsilon then else error ("it's not a parallelogram") end local type = 'parallelogram' local center = midpoint_ (za,zc) |