Loading files
366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.
using System.Collections.Generic;
namespace IDE.Core.Modeling.Solver.Constraints
{
public class CircleRadiusRef : ConstraintRefBase
{
public override double Calc(List<double> parameters)
{
var temp =
parameters[Circle1.Radius] - Radius;
return temp;
}
public override double Grad(List<double> parameters, int index)
{
if (index == Circle1.Radius)
return 1;
return 0;
}
}
}