Operators

# intersection_line_circle (Operator)

## Name

intersection_line_circle — Calculate the intersection points of a line and a circle or circular arc

## Signature

intersection_line_circle( : : LineRow1, LineColumn1, LineRow2, LineColumn2, CircleRow, CircleColumn, CircleRadius, CircleStartPhi, CircleEndPhi, CirclePointOrder : Row, Column)

## Description

intersection_line_circle calculates the intersection points of a line and a circle or circular arc. The line is defined by the points (LineRow1,LineColumn1) and (LineRow2,LineColumn2). The circle is defined by its center (CircleRow,CircleColumn) and its radius CircleRadius. In addition to that, a circular arc is characterized by the angle of the start point CircleStartPhi, the angle of the end point CircleEndPhi, and the point order CirclePointOrder along the boundary. If CirclePointOrder is set to 'positive', the circular arc is defined counterclockwise. If CirclePointOrder is set to 'negative', the circular arc is defined clockwise. The intersection points, if any, are returned in (Row,Column).

## Parallelization

• Multithreading type: reentrant (runs in parallel with non-exclusive operators).
• Multithreading scope: local (may only be called from the same thread in which the window, model, or tool instance was created).
• Processed without parallelization.

## Parameters

LineRow1 (input_control)  point.y (real / integer)

Row coordinate of the first point of the line.

LineColumn1 (input_control)  point.x (real / integer)

Column coordinate of the first point of the line.

LineRow2 (input_control)  point.y (real / integer)

Row coordinate of the second point of the line.

LineColumn2 (input_control)  point.x (real / integer)

Column coordinate of the second point of the line.

CircleRow (input_control)  circle.center.y (real / integer)

Row coordinate of the center of the circle or circular arc.

CircleColumn (input_control)  circle.center.x (real / integer)

Column coordinate of the center of the circle or circular arc.

Radius of the circle or circular arc.

CircleStartPhi (input_control)  real (real)

Angle of the start point of the circle or circular arc [rad].

Default value: 0.0

CircleEndPhi (input_control)  real (real)

Angle of the end point of the circle or circular arc [rad].

Default value: 6.28318

CirclePointOrder (input_control)  string (string)

Point order along the circle or circular arc.

Default value: 'positive'

List of values: 'negative', 'positive'

Row (output_control)  point.y(-array) (real)

Row coordinates of the intersection points.

Column (output_control)  point.x(-array) (real)

Column coordinates of the intersection points.

## Result

If the parameters are valid, the operator intersection_line_circle returns the value 2 (H_MSG_TRUE).