Project

General

Profile

« Previous | Next » 

Revision 12ecac18

Added by Leszek Koltunski almost 5 years ago

Add the 'convexity' param to Dynamics and the Dynamic app.

View differences:

src/main/java/org/distorted/library/type/Dynamic1D.java
57 57
      
58 58
      if( q>1 )
59 59
        {
60
        tmp1.tangent[0] = nx+px/q;
60
        tmp1.tangent[0] = mConvexity*(nx+px/q);
61 61
        }
62 62
      else
63 63
        {
64
        tmp1.tangent[0] = px+nx*q;
64
        tmp1.tangent[0] = mConvexity*(px+nx*q);
65 65
        }
66 66
      }
67 67
    else

Also available in: Unified diff