示例#1
0
文件: RobotCell.cs 项目: zimhe/Robots
 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));
     }
 }
示例#2
0
文件: RobotCell.cs 项目: zimhe/Robots
 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));
     }
 }