Intersect2d.CircleLineParametric (Double, Double, Double, Double, Double, Double, Double, out Double, out Double) Method

Computes the parameters on a line where it intersects a circular object using double data for input geometry.
public static int CircleLineParametric( 
   double xj
   double yj
   double rj
   double x0
   double y0
   double x1
   double y1
   out double t1
   out double t2 
)

Parameters

xj
double

Center x of circle.

yj
double

Center y of circle.

rj
double

Radius of circle.

x0
double

Start x of line.

y0
double

Start y of line.

x1
double

End x of line.

y1
double

End y of line.

t1
double

The first intersection parameter of line. Parametric range is 0-1.

t2
double

The second intersection parameter of line. Parametric range is 0-1.

Return Value

int

The number of intersections. 0 if the circles do not intersect, 1 if they touches in one point or 2 if there is a real intersection.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition