karl- / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
0 stars 2 forks source link

Changed precision for Point class #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago

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