GoXam for WPF v3
GetMidOrthoPosition Method
Northwoods.GoXam Namespace > Route Class : GetMidOrthoPosition Method
The first point's X or Y coordinate, depending on the direction
The last point's X or Y coordinate, depending on the direction
Whether the mid-position is along the vertical axis or horizontal
This method is called by AddOrthoPoints to determine the distance of the middle segment between the two ports.
Syntax
protected virtual double GetMidOrthoPosition( 
   double fromPosition,
   double toPosition,
   bool vertical
)

Parameters

fromPosition
The first point's X or Y coordinate, depending on the direction
toPosition
The last 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

Reference

Route Class
Route Members