distance_lcdistance_lcDistanceLcDistanceLcdistance_lc (Operator)

Name

distance_lcdistance_lcDistanceLcDistanceLcdistance_lc — Calculate the distance between a line and one contour.

Signature

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

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

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

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

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

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

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

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

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

def distance_lc(contour: HObject, row_1: MaybeSequence[Union[float, int]], column_1: MaybeSequence[Union[float, int]], row_2: MaybeSequence[Union[float, int]], column_2: MaybeSequence[Union[float, int]]) -> Tuple[Sequence[float], Sequence[float]]

def distance_lc_s(contour: HObject, row_1: MaybeSequence[Union[float, int]], column_1: MaybeSequence[Union[float, int]], row_2: MaybeSequence[Union[float, int]], column_2: MaybeSequence[Union[float, int]]) -> Tuple[float, float]

Description

The operator distance_lcdistance_lcDistanceLcDistanceLcDistanceLcdistance_lc calculates the orthogonal distance between a line and the segments of one contour. As input the coordinates of two points on a line (Row1Row1Row1Row1row1row_1,Column1Column1Column1Column1column1column_1, Row2Row2Row2Row2row2row_2,Column2Column2Column2Column2column2column_2) and one contour (ContourContourContourContourcontourcontour) are expected. The parameters DistanceMinDistanceMinDistanceMinDistanceMindistanceMindistance_min and DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMaxdistance_max return the result of the calculation.

Execution Information

Parameters

ContourContourContourContourcontourcontour (input_object)  xld_cont objectHXLDContHObjectHXLDContHobject

Input contour.

Row1Row1Row1Row1row1row_1 (input_control)  point.y(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Row coordinate of the first point of the line.

Column1Column1Column1Column1column1column_1 (input_control)  point.x(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Column coordinate of the first point of the line.

Row2Row2Row2Row2row2row_2 (input_control)  point.y(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Row coordinate of the second point of the line.

Column2Column2Column2Column2column2column_2 (input_control)  point.x(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Column coordinate of the second point of the line.

DistanceMinDistanceMinDistanceMinDistanceMindistanceMindistance_min (output_control)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Minimum distance between the line and the contour.

DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMaxdistance_max (output_control)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Maximum distance between the line and the contour.

Result

distance_lcdistance_lcDistanceLcDistanceLcDistanceLcdistance_lc returns TRUE.

Alternatives

distance_pcdistance_pcDistancePcDistancePcDistancePcdistance_pc, distance_scdistance_scDistanceScDistanceScDistanceScdistance_sc, distance_ccdistance_ccDistanceCcDistanceCcDistanceCcdistance_cc, distance_cc_mindistance_cc_minDistanceCcMinDistanceCcMinDistanceCcMindistance_cc_min

See also

distance_lrdistance_lrDistanceLrDistanceLrDistanceLrdistance_lr, distance_prdistance_prDistancePrDistancePrDistancePrdistance_pr, distance_srdistance_srDistanceSrDistanceSrDistanceSrdistance_sr

Module

Foundation