Esempio n. 1
0
        /// <inheritdoc />
        public PointInfo Distance(PointF point)
        {
            PointInfo dist     = this.innerPath.DistanceFromPath(point);
            bool      isInside = this.innerPath.PointInPolygon(point);

            if (isInside)
            {
                dist.DistanceFromPath *= -1;
            }

            return(dist);
        }
Esempio n. 2
0
        /// <inheritdoc />
        public PointInfo Distance(PointF point)
        {
            PointInfo dist = this.InnerPath.DistanceFromPath(point);

            if (this.IsClosed)
            {
                bool isInside = this.InnerPath.PointInPolygon(point);
                if (isInside)
                {
                    dist.DistanceFromPath *= -1;
                }
            }

            return dist;
        }