catmull-rom splines for Android

后端 未结 2 1517
借酒劲吻你
借酒劲吻你 2021-01-22 17:57

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

2条回答
  •  情歌与酒
    2021-01-22 18:49

    I was facing the same problem and there is solution I have found:

    Smooth Bézier Spline Through Prescribed Points

    It is implemented in JavaScript, but it can be easily rewritten to Java - result is natural spline drawn using Path.quadTo().

提交回复
热议问题