コード例 #1
0
        public bool PassedEscapedFromEllipseTest(System.Windows.Media.Geometry geometry, LineSegment path)
        {
            if (this == null)
                throw new NullReferenceException();

            var intersect2 = geometry.FillContainsWithDetail(
                    new System.Windows.Media.RectangleGeometry(GetReturnLine(path).AsSystemRect()));
            if (intersect2 != System.Windows.Media.IntersectionDetail.Empty) {
                return false;
            } else return true;
        }