Project

General

Profile

« Previous | Next » 

Revision c45c2ab1

Added by Leszek Koltunski about 5 years ago

Minor improvements in the Dynamics.

View differences:

src/main/java/org/distorted/library/type/Dynamic2D.java
157 157
    }
158 158

  
159 159
///////////////////////////////////////////////////////////////////////////////////////////////////
160

  
161 160
/**
162
 * Default constructor.
161
 * Constructor setting the speed of interpolation and the number of revolutions.
162
 *
163
 * What constitutes 'one revolution' depends on the MODE:
164
 * {@link Dynamic#MODE_LOOP}, {@link Dynamic#MODE_PATH} or {@link Dynamic#MODE_JUMP}.
163 165
 *
164
 * @param duration number of milliseconds it takes to do a full loop/path from first vector to the
165
 *                 last and back to the first
166
 * @param count    number of loops/paths we will do; mCount = 1.5 means we go from the first vector
167
 *                 to the last, back to first, and to the last again.
166
 * @param duration number of milliseconds it takes to do one revolution.
167
 * @param count    number of revolutions we will do. Count<=0 means 'infinite'.
168 168
 */
169 169
  public Dynamic2D(int duration, float count)
170 170
    {

Also available in: Unified diff