The operator elliptic_axis_xldelliptic_axis_xldEllipticAxisXldEllipticAxisXldelliptic_axis_xld calculates the radii and the
orientations of the ellipses having the same orientation and the same
aspect ratio as the input contours or polygons.
The length of the major radius
RaRaRarara and the minor radius RbRbRbrbrb as well as the
orientation of the main axis with regard to the horizontal
(PhiPhiPhiphiphi) are determined. The angle is indicated in radians.
It is assumed that the contours or polygons are closed. If this is
not the case elliptic_axis_xldelliptic_axis_xldEllipticAxisXldEllipticAxisXldelliptic_axis_xld will artificially close the
contours or polygons.
If more than one contour or polygon is passed, the results are stored
in tuples in the same order as the respective contours or polygons in
XLDXLDXLDXLDxld.
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Angle between the major axis and the x axis
(radians).
Assertion:
- pi / 2 < Phi && Phi <= pi / 2
Complexity
If N is the number of contour or polygon points, the runtime complexity is
O(N).
Result
elliptic_axis_xldelliptic_axis_xldEllipticAxisXldEllipticAxisXldelliptic_axis_xld returns 2 (
H_MSG_TRUE)
if the input is not empty.
If the input is empty the behavior can be set via
set_system(::'no_object_result',<Result>:). If
necessary, an exception is raised.