/// <summary> /// Evaluates the curve section starting at the control point index using /// the weight value. /// </summary> /// <param name="controlPointIndex">Index of the starting control point of the subinterval.</param> /// <param name="weight">Location to evaluate on the subinterval from 0 to 1.</param> /// <param name="value">Value at the given location.</param> public override void Evaluate(int controlPointIndex, float weight, out System.Numerics.Vector3 value) { value = Vector3Ex.Hermite( ControlPoints[controlPointIndex].Value, tangents[controlPointIndex], ControlPoints[controlPointIndex + 1].Value, tangents[controlPointIndex + 1], weight); }