gen_rectangle2_contour_xldgen_rectangle2_contour_xldGenRectangle2ContourXldGenRectangle2ContourXldgen_rectangle2_contour_xld (算子)

名称

gen_rectangle2_contour_xldgen_rectangle2_contour_xldGenRectangle2ContourXldGenRectangle2ContourXldgen_rectangle2_contour_xld — 以矩形形状创建 XLD 轮廓。

签名

gen_rectangle2_contour_xld( : Rectangle : Row, Column, Phi, Length1, Length2 : )

Herror gen_rectangle2_contour_xld(Hobject* Rectangle, double Row, double Column, double Phi, double Length1, double Length2)

Herror T_gen_rectangle2_contour_xld(Hobject* Rectangle, const Htuple Row, const Htuple Column, const Htuple Phi, const Htuple Length1, const Htuple Length2)

void GenRectangle2ContourXld(HObject* Rectangle, const HTuple& Row, const HTuple& Column, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2)

void HXLDCont::GenRectangle2ContourXld(const HTuple& Row, const HTuple& Column, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2)

void HXLDCont::GenRectangle2ContourXld(double Row, double Column, double Phi, double Length1, double Length2)

static void HOperatorSet.GenRectangle2ContourXld(out HObject rectangle, HTuple row, HTuple column, HTuple phi, HTuple length1, HTuple length2)

void HXLDCont.GenRectangle2ContourXld(HTuple row, HTuple column, HTuple phi, HTuple length1, HTuple length2)

void HXLDCont.GenRectangle2ContourXld(double row, double column, double phi, double length1, double length2)

def gen_rectangle2_contour_xld(row: MaybeSequence[float], column: MaybeSequence[float], phi: MaybeSequence[float], length_1: MaybeSequence[float], length_2: MaybeSequence[float]) -> HObject

描述

gen_rectangle2_contour_xldgen_rectangle2_contour_xldGenRectangle2ContourXldGenRectangle2ContourXldGenRectangle2ContourXldgen_rectangle2_contour_xld creates one or more XLD contours in the shape of a rectangle with arbitrary orientation. The rectangle has the center (RowRowRowRowrowrow, ColumnColumnColumnColumncolumncolumn), the orientation PhiPhiPhiPhiphiphi, and the half edge lengths Length1Length1Length1Length1length1length_1 and Length2Length2Length2Length2length2length_2. The angle PhiPhiPhiPhiphiphi must be given in radians and specifies the angle between the horizontal axis and the edge with the half length Length1Length1Length1Length1length1length_1 in the mathematically positive direction (counterclockwise). More than one XLD contour can be created by passing a tuple of rectangle parameters.

执行信息

参数

RectangleRectangleRectangleRectanglerectanglerectangle (输出对象)  xld_cont(-array) objectHXLDContHObjectHXLDContHobject *

Rectangle contour.

RowRowRowRowrowrow (输入控制)  rectangle2.center.y(-array) HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)

Row coordinate of the center of the rectangle.

默认值: 300.0

ColumnColumnColumnColumncolumncolumn (输入控制)  rectangle2.center.x(-array) HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)

Column coordinate of the center of the rectangle.

默认值: 200.0

PhiPhiPhiPhiphiphi (输入控制)  rectangle2.angle.rad(-array) HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)

Orientation of the main axis of the rectangle [rad].

默认值: 0.0

限制: - pi / 2 < Phi && Phi <= pi / 2

Length1Length1Length1Length1length1length_1 (输入控制)  rectangle2.hwidth(-array) HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)

First radius (half length) of the rectangle.

默认值: 100.5

Length2Length2Length2Length2length2length_2 (输入控制)  rectangle2.hheight(-array) HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)

Second radius (half width) of the rectangle.

默认值: 20.5

结果

gen_rectangle2_contour_xldgen_rectangle2_contour_xldGenRectangle2ContourXldGenRectangle2ContourXldGenRectangle2ContourXldgen_rectangle2_contour_xld returns 2 ( H_MSG_TRUE) if all parameter values are correct。如有必要,则抛出异常。

可能的前趋

fit_rectangle2_contour_xldfit_rectangle2_contour_xldFitRectangle2ContourXldFitRectangle2ContourXldFitRectangle2ContourXldfit_rectangle2_contour_xld

替代

gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2gen_rectangle2

另见

gen_contour_polygon_xldgen_contour_polygon_xldGenContourPolygonXldGenContourPolygonXldGenContourPolygonXldgen_contour_polygon_xld

模块

基础