问题
How can I use trigonometry in CLDC 1.0 / MIDP 2.0 application? I need "sin cos tan asin acos atan atan2" functions from standart Math library.
Thanks
回答1:
gnat knows
回答2:
update to prior answer
gnat knows
Above link to Sun Forums became dead after migration to Oracle.
If memory serves, back then I suggested to consider MicroFloat library.
There is also a chance that mentioned Sun forums thread was migrated to this one: Sin & Cos with CLDC. Since message formatting was broken in migration and since no one knows if migrated thread will stay where it is now, here's the "snapshot" of what is there:
CLDC 1.0 (JSR 30) doesn't have float / double and trigonometric functions
For devices limited to CLDC 1.0, search Google for 'CLDC Math library' - there's plenty infoCLDC 1.1 (JSR 139) has some trigonometric and double / float functions in Math package
of functions mentioned in question, sin cos tan are there, asin acos atan atan2 aren't
来源:https://stackoverflow.com/questions/1793534/trigonometry-in-cldc-1-0-midp-2-0-application