package me.bauer.BauerCam.Path;

import java.util.List;

import me.bauer.BauerCam.Utils;
import me.bauer.BauerCam.Interpolation.CubicInterpolator;
import me.bauer.BauerCam.Interpolation.IInterpolatorFactory;
import me.bauer.BauerCam.Interpolation.Interpolator;

public final class ActiveInterpolatorPath extends ActivePath {

	private static IInterpolatorFactory factory = CubicInterpolator.factory;

	private final Interpolator interpolator;
	private final long iterations;

	private long currentIteration;

	public ActiveInterpolatorPath(final List<Position> points, final long iterations) {
		this.iterations = iterations;
		this.interpolator = factory.getInterpolator(points);
		Utils.teleport(this.interpolator.getPoint(0), true);
	}

	public static void setFactory(IInterpolatorFactory factory) {
		ActiveInterpolatorPath.factory = factory;
	}

	@Override
	public void tick() {
		this.currentIteration++;

		final Position pos = this.interpolator.getPoint(this.currentIteration / (float) this.iterations);

		Utils.teleport(pos, false);

		if (this.currentIteration >= this.iterations) {
			stop();
		}
	}

}

package me.bauer.BauerCam.Path;

import java.util.List;

import me.bauer.BauerCam.Utils;
import me.bauer.BauerCam.Interpolation.CubicInterpolator;
import me.bauer.BauerCam.Interpolation.IInterpolatorFactory;
import me.bauer.BauerCam.Interpolation.Interpolator;

public final class ActiveInterpolatorPath extends ActivePath {

	private static IInterpolatorFactory factory = CubicInterpolator.factory;

	private final Interpolator interpolator;
	private final long iterations;

	private long currentIteration;

	public ActiveInterpolatorPath(final List<Position> points, final long iterations) {
		this.iterations = iterations;
		this.interpolator = factory.getInterpolator(points);
		Utils.teleport(this.interpolator.getPoint(0), true);
	}

	public static void setFactory(IInterpolatorFactory factory) {
		ActiveInterpolatorPath.factory = factory;
	}

	@Override
	public void tick() {
		this.currentIteration++;

		final Position pos = this.interpolator.getPoint(this.currentIteration / (double) this.iterations);

		Utils.teleport(pos, false);

		if (this.currentIteration >= this.iterations) {
			stop();
		}
	}

}

Fix ActiveInterpolatorPath only using single precision