GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoDocument Class / IsUnoccupied Method
a RectangleF in document coordinates
an object that should be ignored when checking for collisions, usually the object in the document that you are considering moving; may be null to consider all avoidable objects
In This Topic
    IsUnoccupied Method
    In This Topic
    Returns true if there are any "avoidable" objects within or intersecting the given rectangular region.
    Syntax
    public bool IsUnoccupied( 
       RectangleF r,
       GoObject skip
    )

    Parameters

    r
    a RectangleF in document coordinates
    skip
    an object that should be ignored when checking for collisions, usually the object in the document that you are considering moving; may be null to consider all avoidable objects
    Remarks
    This only considers document objects for which IsAvoidable returns true, with the "occupied" space determined by GetAvoidableRectangle.
    See Also