package org.usfirst.frc.team2503.lib.trajectory;

import org.usfirst.frc.team2503.lib.util.WarriorMath;

public class BezierCurve {

	public Point[] points;

	// TODO: Document
	public double x(double time, double timeMax) {
		return 0.0d;
	}

	// TODO: Document
	private int n() {
		return this.points.length - 1;
	}

	// TODO: Document
	private int binomialCoefficient(int n, int i) {
		return (int) WarriorMath.nCr(n, i);
	}

	// TODO: Document
	public BezierCurve(Point... points) {
		this.points = points;
	}

}

@@ -232,16 +232,124 @@
 rn 0.0d;
+%0A%0A%09// TODO: Document%0A%09private double coefficient(int i) %7B%0A%09%09return this.binomialCoefficient(this.n(), i);%0A%09%7D
 %0A%09%7D%0A%0A%09//

Add coefficient() method