us.ihmc.simulationconstructionset.gui.MinimalTimeDataHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simulation-construction-set
Show all versions of simulation-construction-set
Simulation Construction Set
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;
}
}