diff options
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_quadrilateral.lua')
-rw-r--r-- | macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_quadrilateral.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_quadrilateral.lua b/macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_quadrilateral.lua index e80065540b..e1882c67cb 100644 --- a/macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_quadrilateral.lua +++ b/macros/latex/contrib/tkz/tkz-elements/latex/tkz_elements_quadrilateral.lua @@ -1,6 +1,6 @@ -- tkz_elements_quadrilateral.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 @@ -50,11 +50,10 @@ function quadrilateral: new (za, zb, zc, zd) end ----------------------- function quadrilateral : iscyclic () - local d,epsilon - epsilon = 10^(-8) + local d local alpha = point.arg ((self.pd-self.pa) / (self.pb-self.pa)) local beta = point.arg ((self.pb-self.pc) / (self.pd-self.pc)) - if math.abs (alpha+beta-math.pi) < epsilon then return true + if math.abs (alpha+beta-math.pi) < tkz_epsilon then return true else return false end end |