Aargh... I think I may have to roll back this change. It complicates user code a bit too much: implicit conversions from (Float,Float) to Vector2 won't work when using Doubles, and it seems you can't define multiple implicit conversions from Pairs of primitives (it will say that all of them apply and so can't compile)
Also, it's a bit of a pain to remember to add the :Scalar type annotation to Floats everywhere to support other number types.
What do you think? Is the additional complication worth it to be able to really easily switch from Float to Double or Fixed Point types?
Will anyone actually need Double? Maybe Box2D doesn't gain so much from that?
Will anyone actually need Fixed Point? From what I've read, Android's software Float may be faster than fixed point.
Also, it's a bit of a pain to remember to add the :Scalar type annotation to Floats everywhere to support other number types.
What do you think? Is the additional complication worth it to be able to really easily switch from Float to Double or Fixed Point types?
Will anyone actually need Double? Maybe Box2D doesn't gain so much from that?
Will anyone actually need Fixed Point? From what I've read, Android's software Float may be faster than fixed point.