예제 #1
0
        public override double GetLength(double t0, double t1)
        {
            double a0 = this.GetAngle(t0);
            double a1 = this.GetAngle(t1);

            return(AngleUtils.Diff(a0, a1) * this.Radius);
        }
예제 #2
0
        public static double AngleBetween(double aX, double aY, double bX, double bY, double cX, double cY)
        {
            double a1 = AngleBetween(bX, bY, aX, aY);
            double a2 = AngleBetween(bX, bY, cX, cY);

            return(AngleUtils.Diff(a1, a2));
        }
예제 #3
0
        // angle ABC
        public static double AngleBetween(Coordinate2 <double> a, Coordinate2 <double> b, Coordinate2 <double> c)
        {
            double a1 = AngleBetween(b, a);
            double a2 = AngleBetween(b, c);

            return(AngleUtils.Diff(a1, a2));
        }
예제 #4
0
 // angle ABC
 public static double AngleBetween(Point2 <double> a, Point2 <double> b, Point2 <double> c)
 {
     return(AngleUtils.Diff(AngleBetween(b, a), AngleBetween(b, c)));
 }