Exemple #1
0
        public Tangent(CircleIntersection that) : base()
        {
            if (!that.IsTangent())
            {
                throw new ArgumentException(that + " deduced tangent; it is NOT numerically.");
            }

            intersection = that;
        }
Exemple #2
0
        public Tangent(CircleIntersection that)
            : base()
        {
            if (!that.IsTangent())
            {
                throw new ArgumentException(that + " deduced tangent; it is NOT numerically.");
            }

            intersection = that;
        }
        public override bool Equals(Object obj)
        {
            if (obj is CircleCircleIntersection)
            {
                return((obj as CircleCircleIntersection).Equals(this));
            }
            if (obj is CircleSegmentIntersection)
            {
                return((obj as CircleSegmentIntersection).Equals(this));
            }

            CircleIntersection inter = obj as CircleIntersection;

            if (inter == null)
            {
                return(false);
            }
            return(this.intersect.Equals(inter.intersect) && this.theCircle.Equals(inter.theCircle));
        }