CSharpRoboticsLib.ControlSystems.MotionProfile.Get C# (CSharp) Method

Get() private method

private Get ( double time ) : MotionSetpoint
time double
return MotionSetpoint
        private MotionSetpoint Get(double time)
        {
            try
            {
                return m_path[(int) (time/m_dt)];
            }
            catch (ArgumentOutOfRangeException)
            {
                return time < 0 ? m_path.First() : m_path.Last();
            }
        }