Actionscript 3 - Catmull-Rom Spline curve code




more..


사용방법은.. 곡선을 이을 포인트(x,y쌍) 배열을 매개변수로 넘긴다. $n 은 보간 정도..

ex)
var points : Vector.<Number> = Vector.<Number>(50,50,100,200,200,100,300,300);
var path : Vector.<Number> = CatmullRomSpline.curve(points,20) ;

path[2*i] -> x
path[2*i+1] -> y

Trackback 0 Comment 0

Actionscript 3.0 /flash drawing





Trackback 0 Comment 0

전미분 표현에 대하여

http://mathparadigm.blogspot.com/2007/04/blog-post_26.html

'수학' 카테고리의 다른 글

전미분 표현에 대하여  (0) 2010/02/24
카디오이드와 리마송  (0) 2010/02/13
Trackback 0 Comment 0