distance_scdistance_scDistanceScDistanceScdistance_sc (算子)
名称
distance_scdistance_scDistanceScDistanceScdistance_sc — 计算一条线段和一个轮廓之间的距离。
签名
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)
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
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)
def distance_sc(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_sc_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]
描述
算子 distance_scdistance_scDistanceScDistanceScDistanceScdistance_sc calculates the distance between
a line segment and the line segments of one contour.
Row1Row1Row1Row1row1row_1, Column1Column1Column1Column1column1column_1, Row2Row2Row2Row2row2row_2, Column2Column2Column2Column2column2column_2
are the start and end coordinates of a line segment,
ContourContourContourContourcontourcontour represents the input contour.
The parameters DistanceMinDistanceMinDistanceMinDistanceMindistanceMindistance_min and DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMaxdistance_max
contain the resulting distances.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
ContourContourContourContourcontourcontour (输入对象) xld_cont → objectHXLDContHObjectHXLDContHobject
Input contour.
Row1Row1Row1Row1row1row_1 (输入控制) 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 segment.
Column1Column1Column1Column1column1column_1 (输入控制) 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 segment.
Row2Row2Row2Row2row2row_2 (输入控制) 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 segment.
Column2Column2Column2Column2column2column_2 (输入控制) 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 segment.
DistanceMinDistanceMinDistanceMinDistanceMindistanceMindistance_min (输出控制) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Minimum distance between the line segment and
the contour.
DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMaxdistance_max (输出控制) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Maximum distance between the line segment and
the contour.
结果
distance_srdistance_srDistanceSrDistanceSrDistanceSrdistance_sr 返回 2 ( H_MSG_TRUE )。
替代
distance_lcdistance_lcDistanceLcDistanceLcDistanceLcdistance_lc,
distance_pcdistance_pcDistancePcDistancePcDistancePcdistance_pc,
distance_ccdistance_ccDistanceCcDistanceCcDistanceCcdistance_cc,
distance_cc_mindistance_cc_minDistanceCcMinDistanceCcMinDistanceCcMindistance_cc_min
另见
distance_srdistance_srDistanceSrDistanceSrDistanceSrdistance_sr,
distance_lrdistance_lrDistanceLrDistanceLrDistanceLrdistance_lr,
distance_prdistance_prDistancePrDistancePrDistancePrdistance_pr,
select_xld_pointselect_xld_pointSelectXldPointSelectXldPointSelectXldPointselect_xld_point,
test_xld_pointtest_xld_pointTestXldPointTestXldPointTestXldPointtest_xld_point
模块
基础