Project

General

Profile

« Previous | Next » 

Revision 1b5358fb

Added by Leszek Koltunski over 1 year ago

Comment.

View differences:

src/main/java/org/distorted/library/mesh/MeshPolygon.java
205 205
      float tmp = x*(NUM_CACHE-1);
206 206
      int i1 = (int)tmp;
207 207
      int i2 = i1+1;
208

  
209
      // why 0.5? Arbitrarily; this way the cubit faces of Twisty Puzzles
210
      // [the main and only user of this class] look better.
208 211
      return 0.5f*((tmp-i1)*(mCurveCache[i2]-mCurveCache[i1]) + mCurveCache[i1]);
209 212
      }
210 213
    }

Also available in: Unified diff