/** * Called when the element is sampled for its "last" value. */ protected void sampledLastValue(int repeatIteration) { sampledAtUnitTime(1f, repeatIteration); }
/** * Called when the element is sampled at the given time. */ protected void sampledAt(float simpleTime, float simpleDur, int repeatIteration) { float unitTime; if (simpleDur == TimedElement.INDEFINITE) { unitTime = 0; } else { unitTime = simpleTime / simpleDur; } sampledAtUnitTime(unitTime, repeatIteration); }
/** * Called when the element is sampled for its "last" value. */ protected void sampledLastValue(int repeatIteration) { sampledAtUnitTime(1f, repeatIteration); }
/** * Called when the element is sampled for its "last" value. */ protected void sampledLastValue(int repeatIteration) { sampledAtUnitTime(1f, repeatIteration); }
/** * Called when the element is sampled at the given time. */ protected void sampledAt(float simpleTime, float simpleDur, int repeatIteration) { float unitTime; if (simpleDur == TimedElement.INDEFINITE) { unitTime = 0; } else { unitTime = simpleTime / simpleDur; } sampledAtUnitTime(unitTime, repeatIteration); }
/** * Called when the element is sampled at the given time. */ protected void sampledAt(float simpleTime, float simpleDur, int repeatIteration) { float unitTime; if (simpleDur == TimedElement.INDEFINITE) { unitTime = 0; } else { unitTime = simpleTime / simpleDur; } sampledAtUnitTime(unitTime, repeatIteration); }