Project

General

Profile

« Previous | Next » 

Revision 8c893ffc

Added by Leszek Koltunski almost 8 years ago

Further reduce the distortedObject's API - now only 26 methods, 1/4 of the 104 before the reorganization.

View differences:

src/main/java/org/distorted/library/type/Dynamic.java
73 73
  protected int mVecCurr;    
74 74
  protected boolean cacheDirty; // VectorCache not up to date
75 75
  protected int mMode;          // LOOP, PATH or JUMP
76
  protected long mDuration;     // number of miliseconds it takes to do a full loop/path from first vector to the last and back to the first 
76
  protected long mDuration;     // number of milliseconds it takes to do a full loop/path from first vector to the last and back to the first
77 77
  protected float mCount;       // number of loops/paths we will do; mCount = 1.5 means we go from the first vector to the last, back to first, and to the last again. 
78 78
  protected float mNoise;       // how 'smooth' our path form each vector to the next is. mNoise = 0.0 (min) --> completely smooth; mNoise==1.0 (max) --> very uneven
79 79
  
......
83 83
  Dynamic()
84 84
    {
85 85
    }
86
  
86

  
87 87
///////////////////////////////////////////////////////////////////////////////////////////////////
88 88
  
89 89
  public void interpolateMain(float[] buffer, int offset, long currentDuration)
......
145 145
///////////////////////////////////////////////////////////////////////////////////////////////////
146 146
// PUBLIC API
147 147
///////////////////////////////////////////////////////////////////////////////////////////////////
148

  
148 149
/**
149 150
 * Sets the mode of the interpolation to Loop, Path or Jump.
150 151
 * <ul>

Also available in: Unified diff