Ejemplo n.º 1
0
 public void setPaneSize(int steps, bloPoint top, bloPoint mid, bloPoint bot)
 {
     mSizeTime   = 0.0d;
     mSizeStep   = (1.0d / steps);
     mSizeTop    = top;
     mSizeMid    = mid;
     mSizeBot    = bot;
     mSizeActive = true;
 }
Ejemplo n.º 2
0
 public void setPanePosition(int steps, bloPoint top, bloPoint mid, bloPoint bot)
 {
     mPositionTime   = 0.0d;
     mPositionStep   = (1.0d / steps);
     mPositionTop    = top;
     mPositionMid    = mid;
     mPositionBot    = bot;
     mPositionActive = true;
 }
Ejemplo n.º 3
0
        protected static void makeNewPosition(double time, bloPoint top, bloPoint mid, bloPoint bot, out bloPoint result)
        {
            double botFactor = (time * time);
            double midFactor = (2.0d * (1.0d - time) * time);
            double topFactor = ((1.0d - time) * (1.0d - time));
            double x         = ((top.x * topFactor) + (mid.x * midFactor) + (bot.x * botFactor));
            double y         = ((top.y * topFactor) + (mid.y * midFactor) + (bot.y * botFactor));

            result = new bloPoint(bloCoord2D.round(x), bloCoord2D.round(y));
        }