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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With