Edu*_*ard 33
您可以从任何路径中读取任意数量的点.示例如何从路径中间读取坐标:
PathMeasure pm = new PathMeasure(myPath, false);
//coordinates will be here
float aCoordinates[] = {0f, 0f};
//get coordinates of the middle point
pm.getPosTan(pm.getLength() * 0.5f, aCoordinates, null);
Run Code Online (Sandbox Code Playgroud)
您可以从路径起点传递任何距离以获得点坐标.
| 归档时间: |
|
| 查看次数: |
11711 次 |
| 最近记录: |