[android-developers] Re: Suggestion: Math floating point library for Android
Thank you. Do you have any pointers to the J2ME stuff?
On Jan 12, 3:27 pm, Lance Nanek <lna...@gmail.com> wrote:
> There are a couple methods that have been changed to take float
> instead of double here:http://developer.android.com/intl/fr/reference/android/util/FloatMath...
>
> I've actually been doing my trig and other complex calculations using
> fixed point integers myself. You can find a lot of utilities/libraries
> for that sort of thing that were originally written for J2ME, but that
> work on Android.
>
> On Jan 12, 5:34 pm, Philip <philip.dese...@gmail.com> wrote:
>
>
>
> > I need maths for my game physics and lots of them, so I use the...
> > Math library. And guess what? I never casted so much to floats in my
> > entire life. And i know how costly it is to use doubles on an embedded
> > device because I read the performance optimization page in the google
> > android sdk docs. So I am wondering if we couldn't get a Math package
> > with functions taking and returning floats instead of the default
> > doubles. e.g. Math.sinf Math.cosf.
>
> > Thanks!
>
> > Philip
>
> > PS: It's not my idea, Cocoa on the iPhone does it already.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home