SharpNeat.View.Graph.IOGraphPainter.IsPointWithinViewport C# (CSharp) Метод

IsPointWithinViewport() защищенный Метод

Indicates if a point is within the graphics area represented by the viewport. That is, does an element at this position need to be painted.
protected IsPointWithinViewport ( Point p, PaintState state ) : bool
p Point
state PaintState
Результат bool
        protected bool IsPointWithinViewport(Point p, PaintState state)
        {
            return (p.X >= 0) 
                && (p.Y >= 0) 
                && (p.X < state._viewportArea.Width) 
                && (p.Y < state._viewportArea.Height);
        }