CSize CODGlobal::CalcOrthogonalDirection(const CPoint& ptEndPt, const CRect& rcBounds)
Calculates the direction of a point relative to the center of a rectangle.
Defined in: OdGlobal.cpp
Return Value
A direction vector (0,-1)=up, (1,0)=right, (0,-1)=down, (-1,0)=left
Parameters
ptEndPt
The target point.
rcBounds
The bounding rectangle.