回転メモなんか


2年ぶりに更新だぞ!

っても、メモだけ

EulerFilter作れるかな?

[as3]

at time 5($.rotation.x);
at time 5($.rotation)
(quat 0.422618 0 0 0.906308)
val = at time 5($.rotation)
(quat 0.422618 0 0 0.906308)
at time 5($.rotation.X_Rotation)
50.0
quatToEuler (quat 0.422618 0 0 -0.906308)
(eulerAngles -50 0 0)
(val /2);
val.angle
50.0
$.rotation.angle
$.rotation.axis
[0.862856,0.357407,0.357407]
quatToEuler (quat 0.422618 0 0 -0.906308)
(eulerAngles 50 0 0)
at time 15 ($.rotation.Z_rotation)
45.0
at time 15 ($.rotation.X_rotation)
90.0
val
(quat 0.422618 0 0 0.906308)
val as angleaxis
(angleAxis 50 [1,0,0])
(angleAxis 50 [1,0,0])
val = at time 15 ($.rotation)
(quat 0.653282 0.270598 0.270598 0.653281)
val as angleaxis
(angleAxis 98.4211 [0.862856,0.357407,0.357407])

qorthog val [1,0,0]
quattoEuler (quat 0.653281 0.270598 -0.270598 -0.653282)
(eulerAngles 89.9999 45 -4.34671e-005)
quattoEuler val
(eulerAngles -90 -45 1.20742e-005)

qorthog val [1,0,0]
quattoEuler (quat 0.653281 0.270598 -0.270598 -0.653282)
(eulerAngles 89.9999 45 -4.34671e-005)
quattoEuler val
(eulerAngles -90 -45 1.20742e-005)

[/as3]

昔のメモ

[as3]

ローカルで各中心から
in coordsys local about Pivot rotate $ 5 X_axis

quatToEuler (quat 7.2478e-006 0 0 1)
(eulerAngles -0.000830537 0 0)
eulerToQuat (eulerAngles -0.000830537 0 0)
(quat 7.2478e-006 0 0 1) as eulerAngles

(quat 7.2478e-006 0 0 1) as eulerAngles
(eulerAngles -0.000830537 0 0)

(quat 7.2478e-006 0 0 1) as angleaxis
(angleAxis 0.000830535 [1,0,0])

(angleAxis 0.000830535 [1,0,0]) as quat
(quat 7.24779e-006 0 0 1)
(eulerAngles -0.000830537 0 0) as quat
(quat 7.2478e-006 0 0 1)]

[/as3]