Android Matrix,getValues()返回什么? [英] Android Matrix, what does getValues() return?

查看:838
本文介绍了Android Matrix,getValues()返回什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在计算以下代码的返回值时遇到麻烦pMeasure = PathMeasure,m = Matrix,distCount是沿路径的距离

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]是位置x&分别是y,但我不知道其余的

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

任何帮助再次表示赞赏.

any help once again appreciated.

推荐答案

来自

公共静态最终int MPERSP_0
常数:6(0x00000006)

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

公共静态最终int MPERSP_1
常数:7(0x00000007)

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

公共静态最终int MPERSP_2
常数:8(0x00000008)

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

公共静态最终int MSCALE_X
常数值:0(0x00000000)

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

公共静态最终int MSCALE_Y
常数:4(0x00000004)

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

公共静态最终int MSKEW_X
常数值:1(0x00000001)

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

公共静态最终int MSKEW_Y
常数:3(0x00000003)

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

公共静态最终int MTRANS_X
常数值:2(0x00000002)

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

public static final int MTRANS_Y
常数:5(0x00000005)

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

这篇关于Android Matrix,getValues()返回什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆