Get Distance From Steps : Geometry « Development Class « C# / C Sharp
- C# / C Sharp
- Development Class
- Geometry
Get Distance From Steps
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public static class DataConversion
{
public static double GetDistanceFromSteps(int stride, long steps)
{
if (stride > 0)
{
return (Math.Round((double)
(steps * stride) / 63360, 2));
}
else
{
return 0;
}
}
}
Related examples in the same category