Beispiel #1
0
        //
        // If it's on the circle and not in the minor arc, it's in the major arc.
        //
        public static bool BetweenMajor(Point m, Arc originalArc)
        {
            if (originalArc.HasEndpoint(m))
            {
                return(true);
            }

            if (m == null)
            {
                return(false);
            }

            // Is the point on this circle?
            if (!originalArc.theCircle.PointLiesOn(m))
            {
                return(false);
            }

            // Is it on the arc minor?
            if (BetweenMinor(m, originalArc))
            {
                return(false);
            }

            return(true);
        }
Beispiel #2
0
        public static bool StrictlyBetweenMajor(Point m, Arc originalArc)
        {
            if (m == null)
            {
                return(false);
            }

            if (originalArc.HasEndpoint(m))
            {
                return(false);
            }

            return(BetweenMajor(m, originalArc));
        }
Beispiel #3
0
        public static bool StrictlyBetweenMinor(Point m, Arc originalArc)
        {
            if (m == null) return false;

            if (originalArc.HasEndpoint(m)) return false;

            return BetweenMinor(m, originalArc);
        }
Beispiel #4
0
        //
        // If it's on the circle and not in the minor arc, it's in the major arc.
        //
        public static bool BetweenMajor(Point m, Arc originalArc)
        {
            if (originalArc.HasEndpoint(m)) return true;

            if (m == null) return false;

            // Is the point on this circle?
            if (!originalArc.theCircle.PointLiesOn(m)) return false;

            // Is it on the arc minor?
            if (BetweenMinor(m, originalArc)) return false;

            return true;
        }
Beispiel #5
0
 public bool Covers(Arc that)
 {
     return that.HasEndpoint(this.Point1) && that.HasEndpoint(this.Point2);
 }
Beispiel #6
0
 public bool Covers(Arc that)
 {
     return(that.HasEndpoint(this.Point1) && that.HasEndpoint(this.Point2));
 }