FC_CircleThroughThreePoints2D - General Information
Type: |
Function |
Available as of: |
V1.0.3.0 |
Versions: |
Current version |
Calculates a circle in the 2-dimensional space which passes through three specified points.
Three points which must not be located on a straight line are specified in the 2-dimensional space. This function calculates the center and radius of the circle which passes through these three points.
Input |
Data type |
Description |
---|---|---|
i_stPoint1 |
Point 1 which the circle is to pass through |
|
i_stPoint2 |
Point 2 which the circle is to pass through |
|
i_stPoint3 |
Point 3 which the circle is to pass through |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
Data type |
Description |
---|---|
Calculated circle which passes through the three specified points |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
20 |
The points are located on a straight line. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The circle has been calculated successfully.
Enumeration name: |
PointsCollinear |
Enumeration value: |
20 |
Description: |
The points are located on a straight line. |
Issue |
Cause |
Solution |
---|---|---|
- |
The three points i_stPoint1, i_stPoint2 and i_stPoint3 are located on a straight line. |
The three points i_stPoint1, i_stPoint2 and i_stPoint3 must not be located on a straight line. |