NPlot.PlotSurface2D.HitTest C# (CSharp) Method

HitTest() public method

Performs a hit test with the given point and returns information about the object being hit.
public HitTest ( Point p ) : ArrayList
p Point The point to test.
return System.Collections.ArrayList
        public ArrayList HitTest(Point p)
        {
            ArrayList a = new ArrayList();

            // this is the case if PlotSurface has been cleared.
            //if (m_bbXAxis1Cache == null)
            //{
            //    return a;
            //}
            if ((m_bbXAxis1Cache).Contains(p))
            {
                a.Add(m_xAxis1);
                return a;
            }
            else if ((m_bbYAxis1Cache).Contains(p))
            {
                a.Add(m_yAxis1);
                return a;
            }
            else if ((m_bbXAxis2Cache).Contains(p))
            {
                a.Add(m_xAxis2);
                return a;
            }
            else if ((m_bbYAxis2Cache).Contains(p))
            {
                a.Add(m_yAxis2);
                return a;
            }
            else if ((m_bbTitleCache).Contains(p))
            {
                a.Add(this);
                return a;
            }
            else if ((m_plotAreaBoundingBoxCache).Contains(p))
            {
                a.Add(this);
                return a;
            }

            return a;
        }