Smrf.NodeXL.Visualization.Wpf.VertexDrawer.GetVertexRectangle C# (CSharp) Method

GetVertexRectangle() protected method

protected GetVertexRectangle ( Point oLocation, Double dWidth, Double dHeight ) : Rect
oLocation Point
dWidth Double
dHeight Double
return System.Windows.Rect
    GetVertexRectangle
    (
        Point oLocation,
        Double dWidth,
        Double dHeight
    )
    {
        Debug.Assert(dWidth >= 0);
        Debug.Assert(dHeight >= 0);
        AssertValid();

        return new Rect(

            new Point(oLocation.X - dWidth / 2.0,
                oLocation.Y - dHeight / 2.0),
                        
            new Size(dWidth, dHeight)
            );
    }