Exemple #1
0
        public override bool PointInObject(ICanvas canvas, UnitPoint point)
        {
            //RectangleF boundingrect = GetBoundingRect(canvas);
            //if (boundingrect.Contains(point.Point) == false)
            //    return false;
            // float thWidth = Line.ThresholdWidth(canvas, Width, ThresholdPixel);
            //if (HitUtil.PointInPoint(m_center, point, thWidth))
            //    return true;
            float halfWidth, halfHeight;

            GetHalfWidthAndHeight(out halfWidth, out halfHeight);
            return(HitUtil.IsPointInOval(m_center, halfWidth, halfHeight, point));
        }