Point Interp(Point p1, double indx, Point p2) { double x = BasicLib.Linterp(p1.X, indx, p2.X); double y = BasicLib.Linterp(p1.Y, indx, p2.Y); return(new Point(x, y)); }
Point Interp(double x1, double y1, double indx, double x2, double y2, double sa) { double x = BasicLib.Linterp(x1, indx, x2); double y = BasicLib.Linterp(y1, indx, y2); double r = Math.Sqrt(x * x + y * y); double a = sa + x * colAngle; return(new Point(r * Math.Cos(BasicLib.ToRadians * a), r * Math.Sin(BasicLib.ToRadians * a))); }
public virtual double Height(double x) { double f = (x - _range.Start) / _range.Length; return(BasicLib.Linterp(_offsetL, f, _offsetR)); }