public static void CalculationPlanPosition() { for (int n = 0; n < MechanismAnalys.QuantIteration; n++) { plan_position[n] = new MechanismAnalys(); MechanismAnalys.CalculationPlanPosition(ref plan_position[n], n); MechanismAnalys.CalculationPlanVelocity(ref plan_position[n]); } ; }
public void Render(ref MechanismAnalys mechanism, int n) { MechanismAnalys.PlanPositionParameters plan = new MechanismAnalys.PlanPositionParameters(); mechanism.CalculationPlanPosition(ref plan, n); GeometryGroup res = new GeometryGroup(); Point start = new Point(Xcenter, Ycenter); Point end = new Point(plan.X_Bn * Score + Xcenter, Ycenter - plan.Y_Bn * Score); //res.Children.Add(new LineGeometry(new Point(Xcenter, Ycenter), new Point(plan.X_Bn * Score + Xcenter, Ycenter - plan.Y_Bn * Score))); res.Children.Add(new LineGeometry(start, end)); this.PathPlanePosition.Data = res; }
public static void Render(ref MechanismAnalys mechanism, int n, ref GeometryGroup res) { MechanismAnalys.PlanPositionParameters plan = new MechanismAnalys.PlanPositionParameters(); mechanism.CalculationPlanPosition(ref plan, n); res.Children.Add(new LineGeometry(new Point(Xcenter, Ycenter), new Point(plan.X_Bn * Score + Xcenter, Ycenter - plan.Y_Bn * Score))); }