Position an axis aligned rectangle along the outside edge of a circle such that the closest point of the rectangle is touching said circle.
Parameters
- radius
- Unit radius of the circle
- angle
- The angle between the circle center and the rectangle center.
- rectWidth
- The width of the rectangle.
- rectHeight
- The height of the rectangle.
Return Value
The unit distance from the center of the circle to the center of the rectangle.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2