poly2tri icon indicating copy to clipboard operation
poly2tri copied to clipboard

Changed precision for Point class

Open GoogleCodeExporter opened this issue 10 years ago • 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 [email protected] on 8 Jan 2013 at 1:12

Attachments:

GoogleCodeExporter avatar Mar 16 '15 09:03 GoogleCodeExporter

Original comment by [email protected] on 2 May 2013 at 1:26

  • Changed state: Accepted

GoogleCodeExporter avatar Mar 16 '15 09:03 GoogleCodeExporter