BruceJawn/poly2tri

Changed precision for Point class

GoogleCodeExporter opened this issue · 1 comments

Changed definition of Point class to use double precision (Python: float, 
Cython: double, C: double) instead of single precision (Cython: float, C: 
float). See hint at: http://stackoverflow.com/a/4730931
After doing this the following is possible:
>>> from p2t import Point
>>> pt = Point(453521.56421354739, 5767884.7591257878)
>>> pt.x
453521.5642135474
>>> pt.y
5767884.759125788
whereas before it was:
>>> pt = Point(453521.56421354739, 5767884.7591257878)
>>> pt.x
453521.5625
>>> pt.y
5767885.0

Original issue reported on code.google.com by reinhold...@googlemail.com on 8 Jan 2013 at 1:12

Attachments:

Original comment by mason.gr...@gmail.com on 2 May 2013 at 1:26

  • Changed state: Accepted