Closed owai1980 closed 1 month ago
It works prefect! Thank you! 👍 👍
Le mer. 5 juin 2024 à 23:36, David Eberly @.***> a écrit :
include the ArbitraryPrecision.h before all your other header files in
the source files that use rational numbers. The problem is how the compiler processes the symbols (uses a two-pass system).
— Reply to this email directly, view it on GitHub https://github.com/davideberly/GeometricTools/issues/90#issuecomment-2151002492, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3BAQNLR4XKIHATDEHU2W3ZF6AGTAVCNFSM6AAAAABI264SPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRGAYDENBZGI . You are receiving this because you authored the thread.Message ID: @.***>
Closing this because problem solved.
Hello,
I use GeometricTools mainly with Segment2, Arc2, Line2, Circle, Ray2, ... objects.
Until now, everything was ok, but i have some precision problems, so I want to switch from the standard
double
togte::BSRational<gte::UIntegerAP32>
so now i use:
But for every use of std::sqrt() or std::fabs() i had +- 23 compilation problems in these files:
examples (from various files):
I always have to insert a cast (double) to be allowed to compile:
I use embarcadero c++ builder 12 (lastest version with all patches)
after patching all your files to allow compile, my app compiles and works well, pretty fast, and more precise! (just a little bug in arc2, but i think it's my fault).
these are the typical headers that i include:
Do you have any clue? maybe a problem of namespace? or the path i use to include your files?
thank you!
johan