Project

General

Profile

« Previous | Next » 

Revision 3002bef3

Added by Leszek Koltunski over 7 years ago

Move most of the NOISE complications from DynamicND classes to the parent Dynamic class.

View differences:

src/main/java/org/distorted/library/type/DynamicQuat.java
61 61
    return (float)Math.sqrt(1-x)*(1.5707288f - 0.2121144f*x + 0.074261f*x*x - 0.0187293f*x*x*x);
62 62
    }
63 63

  
64
///////////////////////////////////////////////////////////////////////////////////////////////////
65
// Quaternion Dynamic doesn't support noise
66
  
67
  synchronized void createNoise()
68
    {
69

  
70
    }
71
  
72 64
///////////////////////////////////////////////////////////////////////////////////////////////////
73 65
  
74 66
  private void recomputeCache()
......
118 110
 */
119 111
  public DynamicQuat()
120 112
    {
121
    vv = new Vector<>();
122
    vc = new Vector<>();
123
    numPoints = 0;
124
    cacheDirty = false;
125
    mMode = MODE_LOOP;
126
    mDuration = 0;
127
    mCount = 0.5f;
128
    mNoise = 0.0f;
113
    this(0,0.5f);
129 114
    }
130 115

  
131 116
///////////////////////////////////////////////////////////////////////////////////////////////////
......
148 133
    mDuration = duration;
149 134
    mCount = count;
150 135
    mNoise = 0.0f;
136
    mDimension = 4;
151 137
    }
152 138

  
153 139
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff