Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

估值器 #2

Open
guxiaonian opened this issue Jul 25, 2017 · 1 comment
Open

估值器 #2

guxiaonian opened this issue Jul 25, 2017 · 1 comment

Comments

@guxiaonian
Copy link

里面的起点和终点是鱼的头部和终点,控制点是点击的位置和鱼中心的位置吗

@Jichensheng
Copy link
Owner

Jichensheng commented Aug 1, 2017

起点和中点是鱼的身体重心处和点击点,三阶贝塞尔的两个控制点分别是鱼头圆心点和夹角中点。但是平移不是平移的鱼,而是平移的ImageView,而ImageView的setX,setY方法是相对于ImageView左上角的,所以需要把计算好的贝塞尔曲线做一个平移,让贝塞尔曲线的起点和ImageView重合

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants