Skip to content

Commit 1dbedb7

Browse files
committed
Update
1 parent ccbfe90 commit 1dbedb7

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎CustomView/Advance/[8]Path_Play.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,19 @@ log输出结果:
268268

269269
#### getPosTan
270270

271-
这个方法是用于得到路径上某一长度的位置以及该位置的正切值。
271+
这个方法是用于得到路径上某一长度的位置以及该位置的正切值:
272+
``` java
273+
boolean getPosTan (float distance, float[] pos, float[] tan)
274+
```
275+
276+
方法各个参数释义:
272277

278+
参数 | 作用 | 备注
279+
----------------|----------------------------------|--------------------------------------------
280+
返回值(boolean) | 判断获取是否成功 | 如果返回值为 false 表示获取失败,pos 和 tan 都不会改变
281+
distance | 距离 Path 起点的长度 | 取值范围: 0 <= distance <= getLength
282+
pos | 该点的坐标值 | 坐标值: (x==[0], y==[1])
283+
tan | 该点的正切值 | 正切值: (x==[0], y==[1])
273284

274285

275286

0 commit comments

Comments
 (0)