/// <summary> /// Initializes a new instance of the <see cref="CartesianParametricComponent" /> class that returns a parametric function in <see cref="CartesianCoordinate"/> coordinates, and possibly a differential of the function. /// </summary> /// <param name="function">The function.</param> /// <param name="functionDifferential">The differential of the function.</param> public CartesianParametricComponent( ValueAtPosition <CartesianCoordinate> function, CartesianParametricComponent functionDifferential = null) : base(function) { _differential = functionDifferential; }
/// <summary> /// class that returns a parametric function in <see cref="double"/> coordinates, and possibly a differential of the function. /// </summary> /// <param name="function">The function.</param> /// <param name="functionDifferential">The differential of the function.</param> internal DoubleParametricComponent( ValueAtPosition <double> function, DoubleParametricComponent functionDifferential = null) : base(function) { _differential = functionDifferential; }
/// <summary> /// Initializes a new instance of the <see cref="AngularParametricComponent" /> class that returns a parametric function, and possibly a differential of the function. /// </summary> /// <param name="function">The function.</param> /// <param name="functionDifferential">The differential of the function.</param> public AngularParametricComponent( ValueAtPosition <Angle> function, AngularParametricComponent functionDifferential = null) : base(function) { _differential = functionDifferential; }
/// <summary> /// Initializes a new instance of the <see cref="ParametricEquation{T}"/> class that returns the result of the supplied function. /// </summary> /// <param name="function">The function that returns a value based on the provided parametric position.</param> public ParametricEquation(ValueAtPosition <T> function) { _valueAtPosition = function; }
/// <summary> /// Initializes a new instance of the <see cref="ParametricEquation{T}"/> class that returns the supplied constant value. /// </summary> /// <param name="constantValue">The constant value that is returned, regardless of the parametric position.</param> public ParametricEquation(T constantValue) { _constantValue = constantValue; _valueAtPosition = ConstantValue; }