Skip to content

gen_rectangle2_contour_xldgen_rectangle2_contour_xldGenRectangle2ContourXldGenRectangle2ContourXldgen_rectangle2_contour_xldgen_rectangle2_contour_xld🔗

Short description🔗

gen_rectangle2_contour_xldgen_rectangle2_contour_xldGenRectangle2ContourXldGenRectangle2ContourXldgen_rectangle2_contour_xldgen_rectangle2_contour_xld — Create an XLD contour in the shape of a rectangle.

Signature🔗

gen_rectangle2_contour_xld( out xld_cont Rectangle, rectangle2.center.y Row, rectangle2.center.x Column, rectangle2.angle.rad Phi, rectangle2.hwidth Length1, rectangle2.hheight Length2 )gen_rectangle2_contour_xld( : Rectangle : Row, Column, Phi, Length1, Length2 : )void GenRectangle2ContourXld( HObject* Rectangle, const HTuple& Row, const HTuple& Column, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2 )static void HOperatorSet.GenRectangle2ContourXld( out HObject rectangle, HTuple row, HTuple column, HTuple phi, HTuple length1, HTuple length2 )def gen_rectangle2_contour_xld( row: MaybeSequence[float], column: MaybeSequence[float], phi: MaybeSequence[float], length_1: MaybeSequence[float], length_2: MaybeSequence[float] ) -> HObject

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 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 )

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 )

Description🔗

gen_rectangle2_contour_xldGenRectangle2ContourXld creates one or more XLD contours in the shape of a rectangle with arbitrary orientation. The rectangle has the center (Rowrowrow, Columncolumncolumn), the orientation Phiphiphi, and the half edge lengths Length1length1length_1 and Length2length2length_2. The angle Phiphiphi must be given in radians and specifies the angle between the horizontal axis and the edge with the half length Length1length1length_1 in the mathematically positive direction (counterclockwise).

Parameter Broadcasting🔗

This operator supports parameter broadcasting. This means that each parameter can be given as a tuple of length 1 or N. Parameters with tuple length 1 will be repeated internally such that the number of created items is always N.

Execution information🔗

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🔗

Rectanglerectanglerectangle (output_object) xld_cont(-array) → objectobjectHObjectHXLDContHObjectHobject *

Rectangle contour.

Rowrowrow (input_control) rectangle2.center.y(-array) → (real)(real)HTuple (double)HTuple (double)MaybeSequence[float]Htuple (double)

Row coordinate of the center of the rectangle.

Default: 300.0300.0

Columncolumncolumn (input_control) rectangle2.center.x(-array) → (real)(real)HTuple (double)HTuple (double)MaybeSequence[float]Htuple (double)

Column coordinate of the center of the rectangle.

Default: 200.0200.0

Phiphiphi (input_control) rectangle2.angle.rad(-array) → (real)(real)HTuple (double)HTuple (double)MaybeSequence[float]Htuple (double)

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

Default: 0.00.0
Restriction: -pi / 2 < Phi && Phi <= pi / 2

Length1length1length_1 (input_control) rectangle2.hwidth(-array) → (real)(real)HTuple (double)HTuple (double)MaybeSequence[float]Htuple (double)

First radius (half length) of the rectangle.

Default: 100.5100.5

Length2length2length_2 (input_control) rectangle2.hheight(-array) → (real)(real)HTuple (double)HTuple (double)MaybeSequence[float]Htuple (double)

Second radius (half width) of the rectangle.

Default: 20.520.5

Result🔗

gen_rectangle2_contour_xldGenRectangle2ContourXld returns 2 (H_MSG_TRUE) if all parameter values are correct. If necessary, an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

fit_rectangle2_contour_xldFitRectangle2ContourXld

Alternatives

gen_rectangle2GenRectangle2

See also

gen_contour_polygon_xldGenContourPolygonXld

Module🔗

Foundation