// Moves effector to given position. Returns time robot needs to reach target. // Assumes constant speed and linear movement. public TimeSpan MoveTo(PointF target) { float distance = Effector.DistanceTo(target); Effector = target; return(TimeSpan.FromSeconds(distance / MovementSpeed)); }