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/DynamicQuat.java
118 118
 */
119 119
  public DynamicQuat()
120 120
    {
121
    vv = new Vector<Static4D>();
122
    vc = new Vector<VectorCache>();
121
    vv = new Vector<>();
122
    vc = new Vector<>();
123 123
    numPoints = 0;
124 124
    cacheDirty = false;
125 125
    mMode = MODE_LOOP;
......
127 127
    mCount = 0.5f;
128 128
    mNoise = 0.0f;
129 129
    }
130
  
130

  
131
///////////////////////////////////////////////////////////////////////////////////////////////////
132

  
133
/**
134
 * Default constructor.
135
 *
136
 * @param duration number of milliseconds it takes to do a full loop/path from first vector to the
137
 *                 last and back to the first
138
 * @param count    number of loops/paths we will do; mCount = 1.5 means we go from the first vector
139
 *                 to the last, back to first, and to the last again.
140
 */
141
  public DynamicQuat(int duration, float count)
142
    {
143
    vv = new Vector<>();
144
    vc = new Vector<>();
145
    numPoints = 0;
146
    cacheDirty = false;
147
    mMode = MODE_LOOP;
148
    mDuration = duration;
149
    mCount = count;
150
    mNoise = 0.0f;
151
    }
152

  
131 153
///////////////////////////////////////////////////////////////////////////////////////////////////
132 154
/**
133 155
 * Returns the location'th Static4D.

Also available in: Unified diff