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; }
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; }
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)); }