2点の中間地点を求める

地味に使うケースがあるそうなのでメモ。

var point0:Point, point1:Point;
point0 = new Point( 50, 100 );
point1 = new Point( 200, 200 );

var inter:Point =  Point.interpolate( point0, point1, 0.5 ); //ここの0.5が中間地点を示す
2010年 7月 22日 | Posted in Flash / ActionScript3.0
タグ:
まだコメントはありません。

コメントする

XHTML: 使用可能タグ: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>