|
21.
|
|
|
The following are the ATL statements.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:122
|
|
22.
|
|
|
Interpolation Statement
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:125
|
|
23.
|
|
|
The interpolation statement is the main way that ATL controls transformations.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:127
|
|
24.
|
|
|
The first part of the interpolation statement is used to select a function that time-warps the interpolation. (That is, a function from linear time to non-linear time.) This can either be done by giving the name of a warper registered with ATL, or by giving the keyword "warp" followed by an expression giving a function. Either case is followed by a number, giving the number of seconds the interpolation should take.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:137
|
|
25.
|
|
|
If no warp function is given, the interpolation is run for 0 seconds, using the pause function.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:144
|
|
26.
|
|
|
The warper and duration are used to compute a completion fraction. This is done by dividing the time taken by the interpolation by the duration of the interpolation. This is clamped to the duration, and then passed to the warper. The result returned by the warper is the completion fraction.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:147
|
|
27.
|
|
|
The interpolation statement can then contain a number of other clauses. When a property and value are present, then the value is the value the property will obtain at the end of the statement. The value can be obtained in several ways:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:152
|
|
28.
|
|
|
If the value is followed by one or two knots, then spline motion is used. The starting point is the value of the property at the start of the interpolation, the end point is the property value, and the knots are used to control the spline.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:156
|
|
29.
|
|
|
If the interpolation statement contains a "clockwise" or "counterclockwise" clause, circular motion is used, as described below.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:161
|
|
30.
|
|
|
Otherwise, the value is linearly interpolated between the start and end locations, using the completion fraction.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:164
|