Smrf.NodeXL.Visualization.Wpf.VertexDrawingHistory.GetBoundingSquare C# (CSharp) Method

GetBoundingSquare() protected method

protected GetBoundingSquare ( Double dHalfWidth ) : Rect
dHalfWidth Double
return System.Windows.Rect
    GetBoundingSquare
    (
        Double dHalfWidth
    )
    {
        AssertValid();

        Point oVertexLocation = this.VertexLocation;
        Double dWidth = 2.0 * dHalfWidth;

        return ( new Rect(
            oVertexLocation.X - dHalfWidth, oVertexLocation.Y - dHalfWidth,
            dWidth, dWidth) );
    }