]> gitweb.michael.orlitzky.com - dunshire.git/commit
Get rid of the contains_strict() methods and compare against ABS_TOL.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 11 Oct 2016 14:33:56 +0000 (10:33 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 11 Oct 2016 14:33:56 +0000 (10:33 -0400)
commit4f0bc24d81ecbce9b2220d042b407529917ef5c6
treedce0f005d99c3e159eda0db3f264b2f4763c7af7
parent429a352cedb7bf3e6e717015982834eac1d8ea14
Get rid of the contains_strict() methods and compare against ABS_TOL.

Since we're comparing floating point numbers in the containment tests,
we should be doing it against a tolerance. But then, it becomes
pointless to distinguish between strict and non-strict containment.
So, this commit leaves only the __contains__() methods and checks
against options.ABS_TOL.
src/dunshire/cones.py
src/dunshire/games.py