views:

42

answers:

1

Hi, i'm having trouble working out the returned values of the below code pMeasure = PathMeasure, m = Matrix, distCount is the distance along the path

pMeasure.getMatrix(distCount, m, 0x01 | 0x02); 
m.getValues(float[] values)

float[2] & float[5] are position x & y respectively but i can't figure out the rest

any help once again appreciated.

+1  A: 

Taken from Matrix class documentation:

0 : Scale       X
1 : Skew        X
2 : Transform   X

3 : Scale       Y
4 : Skew        Y
5 : Transform   Y

6 : Perspective 0
7 : Perspective 1
8 : Perspective 2
Andrejs Cainikovs
Thank you but what does perspective mean in this regard?
Matt
Honesly, I don't know.. I bet these values are reserved, and the reason why they are present perhaps is to complete the matrix. Here you will find more info on this topic: http://mobiledevelop.blogspot.com/2009/02/android-canvas-translation-discussion.html
Andrejs Cainikovs