コード例 #1
0
 /// <summary>
 /// Create a new plottable time-series graph
 /// </summary>
 /// <param name="initialStartTime">The point in time that will map to x=0</param>
 /// <param name="timeRange">The time range in seconds the graph should represent</param>
 public PlottableTimeSeries(float initialStartTime, PlottableConfig plotConfig, float timeRange = 20)
 {
     this.currentTimeSeries = new List <Vector2>();
     this.startTime         = initialStartTime;
     this.timeRange         = timeRange;
     this.plotConfig        = plotConfig;
 }
コード例 #2
0
 public PlottableFunctionToSeriesAdapter(Func <float, float> function, PlottableFunctionConfig functionConfig, PlottableConfig plotConfig)
 {
     this.function       = function;
     this.functionConfig = functionConfig;
     this.plotConfig     = plotConfig;
 }