alt tumblr

2010/07/10

“ //右回りの座標 var _pts1:Vector. = Vector.( [ new Point( -50, -50 ), new Point( 50, -50 ), new Point( 50, 50 ), new Point( -50, 50 ) ] ); //左周りの座標 _pts2:Vector. = Vector.( [ new Point( -50, -50 ), new Point( -50, 50 ), new Point( 50, 50 ), new Point( 50, -50 ) ] ); //符号付面積を返す function getArea( pts:Vector. ):Number{ var S:Number = 0; for( var i:uint=0; i „

多角形のパスの向き | 2BLOG

Tumblr » powered Sid05 » templated