intersection_line_contour_xldintersection_line_contour_xldIntersectionLineContourXldIntersectionLineContourXldintersection_line_contour_xld (算子名称)
名称
intersection_line_contour_xldintersection_line_contour_xldIntersectionLineContourXldIntersectionLineContourXldintersection_line_contour_xld — Calculate the intersection points of a line and an XLD contour
参数签名
Herror intersection_line_contour_xld(const Hobject Contour, double LineRow1, double LineColumn1, double LineRow2, double LineColumn2, double* Row, double* Column, Hlong* IsOverlapping)
Herror T_intersection_line_contour_xld(const Hobject Contour, const Htuple LineRow1, const Htuple LineColumn1, const Htuple LineRow2, const Htuple LineColumn2, Htuple* Row, Htuple* Column, Htuple* IsOverlapping)
def intersection_line_contour_xld(contour: HObject, line_row_1: Union[float, int], line_column_1: Union[float, int], line_row_2: Union[float, int], line_column_2: Union[float, int]) -> Tuple[Sequence[float], Sequence[float], int]
def intersection_line_contour_xld_s(contour: HObject, line_row_1: Union[float, int], line_column_1: Union[float, int], line_row_2: Union[float, int], line_column_2: Union[float, int]) -> Tuple[float, float, int]
描述
intersection_line_contour_xldintersection_line_contour_xldIntersectionLineContourXldIntersectionLineContourXldIntersectionLineContourXldintersection_line_contour_xld calculates the intersection points
of a line and an XLD ContourContourContourContourcontourcontour. The line is defined by the points
(LineRow1LineRow1LineRow1LineRow1lineRow1line_row_1,LineColumn1LineColumn1LineColumn1LineColumn1lineColumn1line_column_1) and
(LineRow2LineRow2LineRow2LineRow2lineRow2line_row_2,LineColumn2LineColumn2LineColumn2LineColumn2lineColumn2line_column_2).
The intersection points, if any, are returned in
(RowRowRowRowrowrow,ColumnColumnColumnColumncolumncolumn).
If a part of the XLD contour lies on the line
IsOverlappingIsOverlappingIsOverlappingIsOverlappingisOverlappingis_overlapping 返回值 1, otherwise 0 is returned.
In this case the endpoints of the XLD segment
are returned in (RowRowRowRowrowrow,ColumnColumnColumnColumncolumncolumn).
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
ContourContourContourContourcontourcontour (input_object) xld_cont → objectHXLDContHObjectHXLDContHobject
XLD contour.
LineRow1LineRow1LineRow1LineRow1lineRow1line_row_1 (input_control) point.y → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Row coordinate of the first point of the line.
LineColumn1LineColumn1LineColumn1LineColumn1lineColumn1line_column_1 (input_control) point.x → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Column coordinate of the first point of the line.
LineRow2LineRow2LineRow2LineRow2lineRow2line_row_2 (input_control) point.y → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Row coordinate of the second point of the line.
LineColumn2LineColumn2LineColumn2LineColumn2lineColumn2line_column_2 (input_control) point.x → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Column coordinate of the second point of the line.
RowRowRowRowrowrow (output_control) point.y(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Row coordinates of the intersection points.
ColumnColumnColumnColumncolumncolumn (output_control) point.x(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Column coordinates of the intersection points.
IsOverlappingIsOverlappingIsOverlappingIsOverlappingisOverlappingis_overlapping (output_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Does a part of the XLD contour lie on the line?
结果
如果参数均有效,算子
intersection_line_contour_xldintersection_line_contour_xldIntersectionLineContourXldIntersectionLineContourXldIntersectionLineContourXldintersection_line_contour_xld 返回值 2 (
H_MSG_TRUE)
.
可替代算子
intersection_segment_lineintersection_segment_lineIntersectionSegmentLineIntersectionSegmentLineIntersectionSegmentLineintersection_segment_line
参考其它
intersection_segmentsintersection_segmentsIntersectionSegmentsIntersectionSegmentsIntersectionSegmentsintersection_segments,
intersection_linesintersection_linesIntersectionLinesIntersectionLinesIntersectionLinesintersection_lines,
intersection_segment_contour_xldintersection_segment_contour_xldIntersectionSegmentContourXldIntersectionSegmentContourXldIntersectionSegmentContourXldintersection_segment_contour_xld,
intersection_contours_xldintersection_contours_xldIntersectionContoursXldIntersectionContoursXldIntersectionContoursXldintersection_contours_xld
模块
Foundation