ClassesClassesClassesClasses | | | | Operators

distance_scdistance_scDistanceScdistance_scDistanceScDistanceSc (Operator)

Name

distance_scdistance_scDistanceScdistance_scDistanceScDistanceSc — Calculate the distance between a line segment and one contour.

Signature

distance_sc(Contour : : Row1, Column1, Row2, Column2 : DistanceMin, DistanceMax)

Herror distance_sc(const Hobject Contour, double Row1, double Column1, double Row2, double Column2, double* DistanceMin, double* DistanceMax)

Herror T_distance_sc(const Hobject Contour, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2, Htuple* DistanceMin, Htuple* DistanceMax)

Herror distance_sc(Hobject Contour, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, double* DistanceMin, double* DistanceMax)

Herror distance_sc(Hobject Contour, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, HTuple* DistanceMin, HTuple* DistanceMax)

HTuple HXLDCont::DistanceSc(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, HTuple* DistanceMax) const

void DistanceSc(const HObject& Contour, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, HTuple* DistanceMin, HTuple* DistanceMax)

void HXLDCont::DistanceSc(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, HTuple* DistanceMin, HTuple* DistanceMax) const

void HXLDCont::DistanceSc(double Row1, double Column1, double Row2, double Column2, double* DistanceMin, double* DistanceMax) const

void HOperatorSetX.DistanceSc(
[in] IHUntypedObjectX* Contour, [in] VARIANT Row1, [in] VARIANT Column1, [in] VARIANT Row2, [in] VARIANT Column2, [out] VARIANT* DistanceMin, [out] VARIANT* DistanceMax)

VARIANT HXLDContX.DistanceSc(
[in] VARIANT Row1, [in] VARIANT Column1, [in] VARIANT Row2, [in] VARIANT Column2, [out] VARIANT* DistanceMax)

static void HOperatorSet.DistanceSc(HObject contour, HTuple row1, HTuple column1, HTuple row2, HTuple column2, out HTuple distanceMin, out HTuple distanceMax)

void HXLDCont.DistanceSc(HTuple row1, HTuple column1, HTuple row2, HTuple column2, out HTuple distanceMin, out HTuple distanceMax)

void HXLDCont.DistanceSc(double row1, double column1, double row2, double column2, out double distanceMin, out double distanceMax)

Description

The operator distance_scdistance_scDistanceScdistance_scDistanceScDistanceSc calculates the distance between a line segment and the line segments of one contour. Row1Row1Row1Row1Row1row1, Column1Column1Column1Column1Column1column1, Row2Row2Row2Row2Row2row2, Column2Column2Column2Column2Column2column2 are the start and end coordinates of a line segment, ContourContourContourContourContourcontour represents the input contour. The parameters DistanceMinDistanceMinDistanceMinDistanceMinDistanceMindistanceMin and DistanceMaxDistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMax contain the resulting distances.

Parallelization

Parameters

ContourContourContourContourContourcontour (input_object)  xld_cont objectHXLDContHXLDContHXLDContHXLDContXHobject

Input contour.

Row1Row1Row1Row1Row1row1 (input_control)  point.y(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Row coordinate of the first point of the line segment.

Column1Column1Column1Column1Column1column1 (input_control)  point.x(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Column coordinate of the first point of the line segment.

Row2Row2Row2Row2Row2row2 (input_control)  point.y(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Row coordinate of the second point of the line segment.

Column2Column2Column2Column2Column2column2 (input_control)  point.x(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Column coordinate of the second point of the line segment.

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

Minimum distance between the line segment and the contour.

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

Maximum distance between the line segment and the contour.

Result

distance_srdistance_srDistanceSrdistance_srDistanceSrDistanceSr returns 2 (H_MSG_TRUE).

Alternatives

distance_lcdistance_lcDistanceLcdistance_lcDistanceLcDistanceLc, distance_pcdistance_pcDistancePcdistance_pcDistancePcDistancePc, distance_ccdistance_ccDistanceCcdistance_ccDistanceCcDistanceCc, distance_cc_mindistance_cc_minDistanceCcMindistance_cc_minDistanceCcMinDistanceCcMin

See also

distance_srdistance_srDistanceSrdistance_srDistanceSrDistanceSr, distance_lrdistance_lrDistanceLrdistance_lrDistanceLrDistanceLr, distance_prdistance_prDistancePrdistance_prDistancePrDistancePr, select_xld_pointselect_xld_pointSelectXldPointselect_xld_pointSelectXldPointSelectXldPoint, test_xld_pointtest_xld_pointTestXldPointtest_xld_pointTestXldPointTestXldPoint

Module

Foundation


ClassesClassesClassesClasses | | | | Operators