• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps android.graphics.Matrix.mapPoints = fail?

lms5400

Newbie
Apr 28, 2010
15
0
I noticed I had some very inconsistent results with API level 6 or higher using the mapPoints method on the Matrix object. I have no idea what the method really does, but I'm assuming its a simple matrix multiplication that can be obviously use for transformations.

With correct input, I ended up with results that after days of testing, seemed to be somewhat random. The results always worked in lower API levels (5 and down), but in 6, 7 and 8 they only mostly worked in in debug mode - which made it very hard to test. Otherwise they were mostly incorrect and the resulting vectors from mapPoints were identical to the input - perhaps I don't understand what map points is supposed to do but that was not the result I wanted. To fix this I simply wrote my own matrix transformation method, but I would like to understand how I can get such strange behavior from a method especially across platforms. Has anyone else had unusual experience with this method?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones