Invariance¶
アニメーション関数値の不変性情報
Curve のサブクラスの実装者が、アニメーション関数値が一定となる時刻区間を表明するために利用するクラスである。
See¶
[[Curve.getInvariance]]
Constructors¶
new Invariance()¶
new Invariance():
Invariance
Returns¶
Methods¶
clone()¶
clone():
Invariance
複製を取得
this と同じ内容のインスタンスを生成する。
計算量: 時刻区間数 n に対して O(n)
Returns¶
this の複製
getNarrowed()¶
getNarrowed(
narrow):Invariance
選択範囲に絞った不変性情報を取得
interval で指定した選択範囲と交差する一定値時刻区間を選択して、新しい不変性情報のインスタンスを返す。
Parameters¶
| Parameter | Type | Description |
|---|---|---|
narrow |
Interval |
選択範囲 |
Returns¶
範囲を狭めた不変性情報
merge()¶
staticmerge(invariances):Invariance
複数の Invariance を統合
invariances のすべての同一値時刻区間の共通区間を持った Invariance インスタンスを生成する。
Parameters¶
| Parameter | Type | Description |
|---|---|---|
invariances |
Invariance[] |
統合元のリスト |
Returns¶
統合結果
remove()¶
remove(
interval):Invariance
時刻区間の消去
this が持っているすべての同一値時刻区間から interval の時刻区間部分を消去する。
イメージ的には write() で重ねた色の interval 部分を透明にする。
Parameters¶
| Parameter | Type | Description |
|---|---|---|
interval |
Interval |
時刻区間 |
Returns¶
this
write()¶
write(
interval):Invariance
同一値の時刻区間を上書き
this が持っているすべての同一値時刻区間に interval の時刻区間部分を上書きする。
イメージ的には interval 部分に毎回新しい色を重ねていく。最終的にできた各色の区間を同一値の時刻区間と見なす。
Parameters¶
| Parameter | Type | Description |
|---|---|---|
interval |
Interval |
同一値を持つ時刻区間 |
Returns¶
this