Пример #1
0
 /// <summary>
 /// Switch between two functions such that the second function continues where the first left off.
 /// Eg. Switching from the polar equation (r=1, th=90t) to the xy equation (x=t,y=0) yields:
 /// t = 3 -> (0, -1)
 /// t = 4 -> (1, -1)
 /// t = 5 -> (2, -1)
 /// </summary>
 /// <param name="pivotVar">The variable upon which pivoting is performed. Should be either "p" (firing index) or "t" (time).</param>
 /// <param name="pivot">The value of the variable at which pivoting is performed</param>
 /// <param name="f1">Starting equation</param>
 /// <param name="f2">Equation after pivot</param>
 /// <returns></returns>
 public static ExTP Pivot(ExBPY pivotVar, ExBPY pivot, ExTP f1, ExTP f2) => ExMHelpers.Pivot <TExPI, Vector2>(
     pivot, f1, f2, pivotVar);
Пример #2
0
 /// <summary>
 /// See <see cref="Parametrics.Pivot"/>.
 /// </summary>
 public static ExBPY Pivot(ExBPY pivotVar, ExBPY pivot, ExBPY f1, ExBPY f2) =>
 ExMHelpers.Pivot <TExPI, float>(pivot, f1, f2, pivotVar);