예제 #1
0
        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));
        }
예제 #2
0
        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)));
        }
예제 #3
0
파일: Profile.cs 프로젝트: hamlertools/OTWB
        public virtual double Height(double x)
        {
            double f = (x - _range.Start) / _range.Length;

            return(BasicLib.Linterp(_offsetL, f, _offsetR));
        }