distance_pcdistance_pcDistancePcDistancePcdistance_pc (Operator)
Name
distance_pcdistance_pcDistancePcDistancePcdistance_pc
— Calculate the distance between a point and one contour.
Signature
void DistancePc(const HObject& Contour, const HTuple& Row, const HTuple& Column, HTuple* DistanceMin, HTuple* DistanceMax)
void HXLDCont::DistancePc(const HTuple& Row, const HTuple& Column, HTuple* DistanceMin, HTuple* DistanceMax) const
void HXLDCont::DistancePc(double Row, double Column, double* DistanceMin, double* DistanceMax) const
static void HOperatorSet.DistancePc(HObject contour, HTuple row, HTuple column, out HTuple distanceMin, out HTuple distanceMax)
void HXLDCont.DistancePc(HTuple row, HTuple column, out HTuple distanceMin, out HTuple distanceMax)
void HXLDCont.DistancePc(double row, double column, out double distanceMin, out double distanceMax)
def distance_pc(contour: HObject, row: MaybeSequence[Union[float, int]], column: MaybeSequence[Union[float, int]]) -> Tuple[Sequence[float], Sequence[float]]
def distance_pc_s(contour: HObject, row: MaybeSequence[Union[float, int]], column: MaybeSequence[Union[float, int]]) -> Tuple[float, float]
Description
The operator distance_pcdistance_pcDistancePcDistancePcDistancePcdistance_pc
calculates the distance between one or
several points and a single contour. As input the coordinates of the points
(RowRowRowRowrowrow
,ColumnColumnColumnColumncolumncolumn
) and the contour (ContourContourContourContourcontourcontour
) are
expected. The parameters DistanceMinDistanceMinDistanceMinDistanceMindistanceMindistance_min
and DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMaxdistance_max
return the result of the calculation. Note that the result corresponds to the
distances between the points and the segments of the contour and not the
distances between the points and the base points of the contour (see also
distance_contours_xlddistance_contours_xldDistanceContoursXldDistanceContoursXldDistanceContoursXlddistance_contours_xld
).
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
ContourContourContourContourcontourcontour
(input_object) xld_cont →
objectHXLDContHObjectHXLDContHobject
Input contour.
RowRowRowRowrowrow
(input_control) point.y(-array) →
HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Row coordinate of the point.
ColumnColumnColumnColumncolumncolumn
(input_control) point.x(-array) →
HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Column coordinate of the point.
DistanceMinDistanceMinDistanceMinDistanceMindistanceMindistance_min
(output_control) real(-array) →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Minimum distance between the point and the contour.
DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMaxdistance_max
(output_control) real(-array) →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Maximum distance between the point and the contour.
Result
distance_pcdistance_pcDistancePcDistancePcDistancePcdistance_pc
returns TRUE.
Alternatives
distance_lcdistance_lcDistanceLcDistanceLcDistanceLcdistance_lc
,
distance_scdistance_scDistanceScDistanceScDistanceScdistance_sc
,
distance_ccdistance_ccDistanceCcDistanceCcDistanceCcdistance_cc
,
distance_cc_mindistance_cc_minDistanceCcMinDistanceCcMinDistanceCcMindistance_cc_min
See also
distance_prdistance_prDistancePrDistancePrDistancePrdistance_pr
,
distance_lrdistance_lrDistanceLrDistanceLrDistanceLrdistance_lr
,
distance_srdistance_srDistanceSrDistanceSrDistanceSrdistance_sr
,
hamming_distancehamming_distanceHammingDistanceHammingDistanceHammingDistancehamming_distance
,
select_xld_pointselect_xld_pointSelectXldPointSelectXldPointSelectXldPointselect_xld_point
,
test_xld_pointtest_xld_pointTestXldPointTestXldPointTestXldPointtest_xld_point
Module
Foundation