Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Matrix, what does getValues() return?

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.

like image 630
Matt Avatar asked Jul 08 '10 10:07

Matt


1 Answers

Taken from the Matrix class documentation:

public static final int MPERSP_0
Constant Value: 6 (0x00000006)

public static final int MPERSP_1
Constant Value: 7 (0x00000007)

public static final int MPERSP_2
Constant Value: 8 (0x00000008)

public static final int MSCALE_X
Constant Value: 0 (0x00000000)

public static final int MSCALE_Y
Constant Value: 4 (0x00000004)

public static final int MSKEW_X
Constant Value: 1 (0x00000001)

public static final int MSKEW_Y
Constant Value: 3 (0x00000003)

public static final int MTRANS_X
Constant Value: 2 (0x00000002)

public static final int MTRANS_Y
Constant Value: 5 (0x00000005)

like image 183
Andrejs Cainikovs Avatar answered Sep 24 '22 16:09

Andrejs Cainikovs