area_intersection_rectangle2AreaIntersectionRectangle2AreaIntersectionRectangle2area_intersection_rectangle2area_intersection_rectangle2
説明
area_intersection_rectangle2AreaIntersectionRectangle2AreaIntersectionRectangle2area_intersection_rectangle2area_intersection_rectangle2 — 方向を持つ矩形の交差している面積を計算する。
書式
area_intersection_rectangle2( rectangle2.center.y Rect1Row, rectangle2.center.x Rect1Column, rectangle2.angle.rad Rect1Phi, rectangle2.hwidth Rect1Length1, rectangle2.hheight Rect1Length2, rectangle2.center.y Rect2Row, rectangle2.center.x Rect2Column, rectangle2.angle.rad Rect2Phi, rectangle2.hwidth Rect2Length1, rectangle2.hheight Rect2Length2, out real AreaIntersection )void AreaIntersectionRectangle2( const HTuple& Rect1Row, const HTuple& Rect1Column, const HTuple& Rect1Phi, const HTuple& Rect1Length1, const HTuple& Rect1Length2, const HTuple& Rect2Row, const HTuple& Rect2Column, const HTuple& Rect2Phi, const HTuple& Rect2Length1, const HTuple& Rect2Length2, HTuple* AreaIntersection )static void HOperatorSet.AreaIntersectionRectangle2( HTuple rect1Row, HTuple rect1Column, HTuple rect1Phi, HTuple rect1Length1, HTuple rect1Length2, HTuple rect2Row, HTuple rect2Column, HTuple rect2Phi, HTuple rect2Length1, HTuple rect2Length2, out HTuple areaIntersection )def area_intersection_rectangle2( rect_1row: MaybeSequence[Union[float, int]], rect_1column: MaybeSequence[Union[float, int]], rect_1phi: MaybeSequence[Union[float, int]], rect_1length_1: MaybeSequence[Union[float, int]], rect_1length_2: MaybeSequence[Union[float, int]], rect_2row: MaybeSequence[Union[float, int]], rect_2column: MaybeSequence[Union[float, int]], rect_2phi: MaybeSequence[Union[float, int]], rect_2length_1: MaybeSequence[Union[float, int]], rect_2length_2: MaybeSequence[Union[float, int]] ) -> Sequence[float]
def area_intersection_rectangle2_s( rect_1row: MaybeSequence[Union[float, int]], rect_1column: MaybeSequence[Union[float, int]], rect_1phi: MaybeSequence[Union[float, int]], rect_1length_1: MaybeSequence[Union[float, int]], rect_1length_2: MaybeSequence[Union[float, int]], rect_2row: MaybeSequence[Union[float, int]], rect_2column: MaybeSequence[Union[float, int]], rect_2phi: MaybeSequence[Union[float, int]], rect_2length_1: MaybeSequence[Union[float, int]], rect_2length_2: MaybeSequence[Union[float, int]] ) -> floatHerror area_intersection_rectangle2( double Rect1Row, double Rect1Column, double Rect1Phi, double Rect1Length1, double Rect1Length2, double Rect2Row, double Rect2Column, double Rect2Phi, double Rect2Length1, double Rect2Length2, double* AreaIntersection )
Herror T_area_intersection_rectangle2( const Htuple Rect1Row, const Htuple Rect1Column, const Htuple Rect1Phi, const Htuple Rect1Length1, const Htuple Rect1Length2, const Htuple Rect2Row, const Htuple Rect2Column, const Htuple Rect2Phi, const Htuple Rect2Length1, const Htuple Rect2Length2, Htuple* AreaIntersection )
説明
area_intersection_rectangle2AreaIntersectionRectangle2 は、
(中心座標(Rect1Rowrect1Rowrect_1row,Rect1Columnrect1Columnrect_1column),半分のエッジ長さ(Rect1Length1rect1Length1rect_1length_1,
Rect1Length2rect1Length2rect_1length_2),方向(Rect1Phirect1Phirect_1phi))と
(中心座標(Rect2Rowrect2Rowrect_2row,Rect2Columnrect2Columnrect_2column),半分のエッジ長さ(Rect2Length1rect2Length1rect_2length_1,
Rect2Length2rect2Length2rect_2length_2),方向(Rect2Phirect2Phirect_2phi))で
定義された2つの方向を持つ矩形(rectangle2の矩形)の交差している面積を計算します。
交差面積はAreaIntersectionareaIntersectionarea_intersectionに返されます。
パラメータ ブロードキャスト
このオペレータはパラメータ ブロードキャストをサポートします。
これは、各パラメータを長さ1 または NのTupleとして指定できることを意味します。
Tuple長さ 1 のパラメータは、結果の数が常に N になるように
内部的に繰り返されます。
実行情報
実行情報
パラメーター
Rect1Rowrect1Rowrect_1row (input_control) rectangle2.center.y(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
1つ目の矩形の中心行座標
Rect1Columnrect1Columnrect_1column (input_control) rectangle2.center.x(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
1つ目の矩形の中心列座標
Rect1Phirect1Phirect_1phi (input_control) rectangle2.angle.rad(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
1つ目の矩形の水平軸と長軸間の角度(ラジアン)
Rect1Length1rect1Length1rect_1length_1 (input_control) rectangle2.hwidth(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
1つ目の矩形の長軸の長さ
Rect1Length2rect1Length2rect_1length_2 (input_control) rectangle2.hheight(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
1つ目の矩形の短軸の長さ
Rect2Rowrect2Rowrect_2row (input_control) rectangle2.center.y(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
2つ目の矩形の中心行座標
Rect2Columnrect2Columnrect_2column (input_control) rectangle2.center.x(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
2つ目の矩形の中心列座標
Rect2Phirect2Phirect_2phi (input_control) rectangle2.angle.rad(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
2つ目の矩形の水平軸と長軸間の角度(ラジアン)
Rect2Length1rect2Length1rect_2length_1 (input_control) rectangle2.hwidth(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
2つ目の矩形の長軸の長さ
Rect2Length2rect2Length2rect_2length_2 (input_control) rectangle2.hheight(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
2つ目の矩形の短軸の長さ
AreaIntersectionareaIntersectionarea_intersection (output_control) real(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)
1つ目の矩形と2つ目の矩形の交差面積
結果
パラメータが有効ならば、area_intersection_rectangle2AreaIntersectionRectangle2は
2 (H_MSG_TRUE)の値を返します。
他のオペレーターとの組み合わせ
組み合わせ
関連項目
gen_rectangle2GenRectangle2, intersection_segmentsIntersectionSegments, intersection_segment_lineIntersectionSegmentLine, intersection_segment_contour_xldIntersectionSegmentContourXld, intersection_line_contour_xldIntersectionLineContourXld, intersection_contours_xldIntersectionContoursXld
モジュール
Foundation