开发者

Evaluation of curve in Java2D

开发者 https://www.devze.com 2022-12-13 06:08 出处:网络
Are there methods for evaluating cubic or quadratic Java2D curves at a given time t? I know the algorithm is simple, but I would suspe开发者_如何学运维ct that there is a method for that already in Jav

Are there methods for evaluating cubic or quadratic Java2D curves at a given time t? I know the algorithm is simple, but I would suspe开发者_如何学运维ct that there is a method for that already in Java.


For whatever reason, they made all of that stuff private. But (and you may already know this) the QuadCurve2D (and CubicCurve2D) source is all there for you to read in the SDK, and it has all of the t-wise code within.

0

精彩评论

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