/// <summary> /// Creates an instance with a sampled (parameterised) curve. /// </summary> /// <param name="samplePoints"> the points where we sample the curve </param> /// <param name="curve"> a parameterised curve </param> public ParameterizedCurveVectorFunction(double[] samplePoints, ParameterizedCurve curve) { ArgChecker.notEmpty(samplePoints, "samplePoints"); ArgChecker.notNull(curve, "curve"); _samplePoints = Arrays.copyOf(samplePoints, samplePoints.Length); _curve = curve; }
/// <summary> /// Creates an instance backed by a <seealso cref="ParameterizedCurve"/>. /// </summary> /// <param name="pCurve"> the parameterised curve </param> public ParameterizedCurveVectorFunctionProvider(ParameterizedCurve pCurve) { ArgChecker.notNull(pCurve, "pCurve"); _pCurve = pCurve; }
static ParameterizedCurveVectorFunctionTest() { s_PCurve = new ParameterizedCurveAnonymousInnerClass(); }