Version

OffsetRectAlongCircleOutside Method

Position an axis aligned rectangle along the outside edge of a circle such that the closest point of the rectangle is touching said circle.
Syntax
'Declaration
 
Public Shared Function OffsetRectAlongCircleOutside( _
   ByVal radius As Double, _
   ByVal angle As Double, _
   ByVal rectWidth As Double, _
   ByVal rectHeight As Double _
) As Double
public static double OffsetRectAlongCircleOutside( 
   double radius,
   double angle,
   double rectWidth,
   double rectHeight
)

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.
Requirements

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

See Also