ActionScript 3.0 アニメーションを読んでるメモ。

チャプター3。

簡単な三角関数について。
でも、予想以上に忘れてらー。

サイン, コサイン, タンジェント,
アークサイン, アークコサイン, アークタンジェント,
ピタゴラスの定理。

cos は、基本的に x の位置を示し、sin は y の位置を示す。
sin = y / r
cos = x / r

要は、比率。

ピタゴラスの定理は、a^2 + b^2 = c^2
2点間の距離を出すのに便利。

Chap03_Test

以下、ソース。

Ball.as

Chap03_Test.as

関連エントリー:

as3 + animation chap04 スプレー

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt=""> <pre lang="" line="" escaped="" highlight="">