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

            intersection = that;
        }
コード例 #2
0
ファイル: Tangent.cs プロジェクト: wcatykid/GeoShader
        public Tangent(CircleIntersection that)
            : base()
        {
            if (!that.IsTangent())
            {
                throw new ArgumentException(that + " deduced tangent; it is NOT numerically.");
            }

            intersection = that;
        }
コード例 #3
0
ファイル: ArcIntersection.cs プロジェクト: wcatykid/GeoShader
        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));
        }