From 1dbedb70d365a6a952fe75a4ad5c5e5a6e1bd643 Mon Sep 17 00:00:00 2001 From: sloop Date: Mon, 30 May 2016 19:03:47 +0800 Subject: [PATCH] Update --- CustomView/Advance/[8]Path_Play.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CustomView/Advance/[8]Path_Play.md b/CustomView/Advance/[8]Path_Play.md index 9603d86..949da55 100644 --- a/CustomView/Advance/[8]Path_Play.md +++ b/CustomView/Advance/[8]Path_Play.md @@ -268,8 +268,19 @@ log输出结果: #### getPosTan -这个方法是用于得到路径上某一长度的位置以及该位置的正切值。 +这个方法是用于得到路径上某一长度的位置以及该位置的正切值: +``` java + boolean getPosTan (float distance, float[] pos, float[] tan) +``` +方法各个参数释义: + +参数 | 作用 | 备注 +----------------|----------------------------------|-------------------------------------------- +返回值(boolean) | 判断获取是否成功 | 如果返回值为 false 表示获取失败,pos 和 tan 都不会改变 +distance | 距离 Path 起点的长度 | 取值范围: 0 <= distance <= getLength +pos | 该点的坐标值 | 坐标值: (x==[0], y==[1]) +tan | 该点的正切值 | 正切值: (x==[0], y==[1])