AcManager.Controls.OxyPlotGraphViewer.CatmullRomSplineHelper.GetT C# (CSharp) Method

GetT() private static method

private static GetT ( double t, OxyPlot.ScreenPoint p0, OxyPlot.ScreenPoint p1, double alpha ) : double
t double
p0 OxyPlot.ScreenPoint
p1 OxyPlot.ScreenPoint
alpha double
return double
            private static double GetT(double t, ScreenPoint p0, ScreenPoint p1, double alpha) {
                var a = Math.Pow(p1.X - p0.X, 2d) + Math.Pow(p1.Y - p0.Y, 2d);
                var b = Math.Pow(a, 0.5);
                var c = Math.Pow(b, alpha);
                return c + t;
            }
OxyPlotGraphViewer.CatmullRomSplineHelper