public double RadianToDegree(double radian, int i) { if (i < 6) { return(Robot.RadianToDegree(radian, i)); } else { return(Externals.First(x => x.Joints.Contains(Joints.First(y => y.Number == i))).RadianToDegree(radian, i)); } }
public double DegreeToRadian(double degree, int i) { if (i < 6) { return(Robot.DegreeToRadian(degree, i)); } else { return(Externals.First(x => x.Joints.Contains(Joints.First(y => y.Number == i))).DegreeToRadian(degree, i)); } }