GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoLink Class / GetMidOrthoPosition Method
The FromPort's point's X or Y coordinate, depending on the direction
The ToPort's point's X or Y coordinate, depending on the direction
Whether the mid-position is along the vertical axis or horizontal
In This Topic
    GetMidOrthoPosition Method
    In This Topic
    This method is called by AddOrthoPoints to determine the distance of the middle segment between the two ports.
    Syntax
    protected virtual float GetMidOrthoPosition( 
       float fromPosition,
       float toPosition,
       bool vertical
    )

    Parameters

    fromPosition
    The FromPort's point's X or Y coordinate, depending on the direction
    toPosition
    The ToPort's point's X or Y coordinate, depending on the direction
    vertical
    Whether the mid-position is along the vertical axis or horizontal
    Remarks
    By default this returns the midpoint between the two coordinates.
    See Also