All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.simulationconstructionset.gui.MinimalTimeDataHolder Maven / Gradle / Ivy

There is a newer version: 0.25.2
Show newest version
package us.ihmc.simulationconstructionset.gui;

import us.ihmc.yoVariables.buffer.interfaces.YoTimeBufferHolder;

public class MinimalTimeDataHolder implements YoTimeBufferHolder
{
   private double[] timeData;

   MinimalTimeDataHolder(int nPoints)
   {
      timeData = new double[nPoints];
      double time = 1.0;

      for (int i = 0; i < nPoints; i++)
      {
         timeData[i] = time;
         time = time + 0.01;
      }
   }

   @Override
   public double[] getTimeBuffer()
   {
      return timeData;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy