Get Distance From Steps : Geometry « Development Class « C# / C Sharp






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

1.Convert Meters To Inches
2.Convert Meters To Miles
3.Get Steps FromD istance And Stride
4.Convert Miles To Meters
5.Distance Util
6.PointD
7.Calculate Gradient Angle
8.Convert Meters To Feet
9.Get distance between two points
10.Tests if two line segments intersect or not.
11.Sorts a graph by the dependencies.
12.Degrees To Radians
13.Radians To Degrees
14.Angles Difference
15.Degrees To Radians and Radians To Degrees
16.Meter to feet and feet to Mile
17.Distance From Point To Line