ClassesClassesClassesClasses | | | | Operators

length_xldlength_xldLengthXldlength_xldLengthXldLengthXld (Operator)

Name

length_xldlength_xldLengthXldlength_xldLengthXldLengthXld — Length of contours or polygons.

Signature

length_xld(XLD : : : Length)

Herror length_xld(const Hobject XLD, double* Length)

Herror T_length_xld(const Hobject XLD, Htuple* Length)

Herror length_xld(Hobject XLD, double* Length)

Herror length_xld(Hobject XLD, HTuple* Length)

double HXLD::LengthXld() const

HTuple HXLDArray::LengthXld() const

void LengthXld(const HObject& XLD, HTuple* Length)

HTuple HXLD::LengthXld() const

void HOperatorSetX.LengthXld(
[in] IHUntypedObjectX* XLD, [out] VARIANT* Length)

VARIANT HXLDX.LengthXld()

VARIANT HXLDContX.LengthXld()

VARIANT HXLDPolyX.LengthXld()

VARIANT HXLDParaX.LengthXld()

VARIANT HXLDModParaX.LengthXld()

VARIANT HXLDExtParaX.LengthXld()

static void HOperatorSet.LengthXld(HObject XLD, out HTuple length)

HTuple HXLD.LengthXld()

Description

length_xldlength_xldLengthXldlength_xldLengthXldLengthXld calculates the length of the contours or polygons XLDXLDXLDXLDXLDXLD. The length is calculated as the sum of the euclidian distances of successive points on the contour or polygon. 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 XLDXLDXLDXLDXLDXLD.

Parallelization

Parameters

XLDXLDXLDXLDXLDXLD (input_object)  xld(-array) objectHXLDHXLDHXLDHXLDXHobject

Contours or polygons to be examined.

LengthLengthLengthLengthLengthlength (output_control)  real(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Length of the contour or polygon.

Assertion: Length >= 0

Complexity

Let n be the number of points of the contour or polygon. Then the run time is O(n).

Result

length_xldlength_xldLengthXldlength_xldLengthXldLengthXld 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>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>). If necessary, an exception is raised.

Possible Predecessors

gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXld, smooth_contours_xldsmooth_contours_xldSmoothContoursXldsmooth_contours_xldSmoothContoursXldSmoothContoursXld, gen_polygons_xldgen_polygons_xldGenPolygonsXldgen_polygons_xldGenPolygonsXldGenPolygonsXld

See also

area_center_xldarea_center_xldAreaCenterXldarea_center_xldAreaCenterXldAreaCenterXld, moments_any_xldmoments_any_xldMomentsAnyXldmoments_any_xldMomentsAnyXldMomentsAnyXld, moments_xldmoments_xldMomentsXldmoments_xldMomentsXldMomentsXld, contlengthcontlengthContlengthcontlengthContlengthContlength

Module

Foundation


ClassesClassesClassesClasses | | | | Operators