Closed GoogleCodeExporter closed 8 years ago
This must be the result of some bug. They are simple polygons and there is no
issues triangulation them with the Java version.
Original comment by thahlen@gmail.com
on 16 Dec 2010 at 3:59
Thank you both for verifying this for me. I'll have to go over my code again.
Original comment by roond...@gmail.com
on 17 Dec 2010 at 1:42
Ok, I'm officially an idiot. Turns out to get it to compile for MSVC I added
the following:
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif
#ifndef M_PI_2
#define M_PI_2 6.283185307179586476925286766558
#endif
And clearly M_PI_2 is meant to be PI / 2 not PI * 2. Sorry for wasting your
time!
Original comment by roond...@gmail.com
on 17 Dec 2010 at 2:46
np. I know of one more that did this error. There should probably be a comment
or something about this in the code.
I usually name such fields PI_DIV_2 to avoid confusion.
Original comment by thahlen@gmail.com
on 17 Dec 2010 at 5:30
OK, I'll change M_PI_2 to PI_DIV_2 to avoid confusion.... thanks for the catch!
/Mason
Original comment by mason.gr...@gmail.com
on 17 Dec 2010 at 6:58
Original issue reported on code.google.com by
roond...@gmail.com
on 16 Dec 2010 at 8:48Attachments: