开发者

catmull-rom splines for Android

开发者 https://www.devze.com 2023-02-23 08:18 出处:网络
I\'m trying to find a way to implement catmull-rom splines on the android platform for the purpose of smoothly drawing a line through n points.Ideally I would be able to adapt cubic beziers via the Pa

I'm trying to find a way to implement catmull-rom splines on the android platform for the purpose of smoothly drawing a line through n points. Ideally I would be able to adapt cubic beziers via the Path and its cubicTo method as alluded to in this thread: How do I draw a curve through tree points in Android?

Unfortunately, I wasnt able to follow the implementation there so I'm hoping somebody out there has already done this and can share a few lines of sample code.

Tha开发者_如何转开发nks!

0

精彩评论

暂无评论...
验证码 换一张
取 消