UtilityEx.GetCirclesTangentToTwoCircles Method

Computes the circles tangent to two given circles or arcs.
Public Shared Function GetCirclesTangentToTwoCircles( _ 
ByVal c1 As Circle, _ 
ByVal c2 As Circle, _ 
ByVal radius As Double, _ 
ByVal trim As Boolean, _ 
Optional ByVal flip As Boolean = false _ 
) As Circle()
This language is not supported or no code example is available.
public static Circle[] GetCirclesTangentToTwoCircles( 
Circle c1
Circle c2
double radius
bool trim
bool flip = false 
)
This language is not supported or no code example is available.

Parameters

c1
Circle

The first circle.

c2
Circle

The second circle.

radius
double

The radius of the tangent circles

trim
bool

If true, it trims the tangent circle at the tangent points.

flip
bool

It is significant only when trim is true. If false (default) it returns the shortest part of the tangent circle, if true it returns the longest part.

Return Value

Circle[]

The array of circles tangent to both circles. For arcs, it returns only the circles that touch them. The StartPoint of the output circles lie always on c1. If trim is true, the trimmed arc goes from c1 to c2.

.NET Framework

Supported in: 4.8

In this article

Definition