dist_rectangle2_contour_points_xldT_dist_rectangle2_contour_points_xldDistRectangle2ContourPointsXldDistRectangle2ContourPointsXlddist_rectangle2_contour_points_xld (Operator)

Name

dist_rectangle2_contour_points_xldT_dist_rectangle2_contour_points_xldDistRectangle2ContourPointsXldDistRectangle2ContourPointsXlddist_rectangle2_contour_points_xld — Berechnen der Abstände von allen Punkten einer Kontur zu einem Rechteck.

Signatur

dist_rectangle2_contour_points_xld(Contour : : ClippingEndPoints, Row, Column, Phi, Length1, Length2 : Distances)

Herror T_dist_rectangle2_contour_points_xld(const Hobject Contour, const Htuple ClippingEndPoints, const Htuple Row, const Htuple Column, const Htuple Phi, const Htuple Length1, const Htuple Length2, Htuple* Distances)

void DistRectangle2ContourPointsXld(const HObject& Contour, const HTuple& ClippingEndPoints, const HTuple& Row, const HTuple& Column, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2, HTuple* Distances)

HTuple HXLDCont::DistRectangle2ContourPointsXld(Hlong ClippingEndPoints, double Row, double Column, double Phi, double Length1, double Length2) const

static void HOperatorSet.DistRectangle2ContourPointsXld(HObject contour, HTuple clippingEndPoints, HTuple row, HTuple column, HTuple phi, HTuple length1, HTuple length2, out HTuple distances)

HTuple HXLDCont.DistRectangle2ContourPointsXld(int clippingEndPoints, double row, double column, double phi, double length1, double length2)

def dist_rectangle2_contour_points_xld(contour: HObject, clipping_end_points: int, row: float, column: float, phi: float, length_1: float, length_2: float) -> Sequence[float]

Beschreibung

dist_rectangle2_contour_points_xlddist_rectangle2_contour_points_xldDistRectangle2ContourPointsXldDistRectangle2ContourPointsXldDistRectangle2ContourPointsXlddist_rectangle2_contour_points_xld bestimmt die euklidischen Abstände zwischen den Punkten einer Kontur ContourContourContourContourcontourcontour und einem Rechteck beliebiger Orientierung, das durch den Mittelpunkt (RowRowRowRowrowrow, ColumnColumnColumnColumncolumncolumn), die Orientierung PhiPhiPhiPhiphiphi und halben Kantenlängen Length1Length1Length1Length1length1length_1 und Length2Length2Length2Length2length2length_2 definiert ist. Der Winkel PhiPhiPhiPhiphiphi wird im Bogenmaß spezifiziert und gibt den Winkel der horizontalen Achse und der Kante mit der halben Länge Length1Length1Length1Length1length1length_1 im mathematisch positiven Sinn (gegen den Uhrzeigersinn) an.

Je nach Vorverarbeitung lassen sich die Start- und Endpunkte einer Kontur nicht exakt bestimmen. Dann wird der Operator fit_rectangle2_contour_xldfit_rectangle2_contour_xldFitRectangle2ContourXldFitRectangle2ContourXldFitRectangle2ContourXldfit_rectangle2_contour_xld typischerweise mit einem Wert größer null für den Parameter ClippingEndPointsClippingEndPointsClippingEndPointsClippingEndPointsclippingEndPointsclipping_end_points aufgerufen, um eine bestimmte Anzahl an Punkten an beiden Enden der Kontur für die Berechnung auszuschließen. Damit der Abstand für dieselben Konturpunkte wie in der Rechtecksanpassung berechnet werden kann, ist für den Parameter ClippingEndPointsClippingEndPointsClippingEndPointsClippingEndPointsclippingEndPointsclipping_end_points derselbe Wert wie bei fit_rectangle2_contour_xldfit_rectangle2_contour_xldFitRectangle2ContourXldFitRectangle2ContourXldFitRectangle2ContourXldfit_rectangle2_contour_xld zu wählen.

Ausführungsinformationen

Parameter

ContourContourContourContourcontourcontour (input_object)  xld_cont objectHXLDContHObjectHXLDContHobject

Eingabekontur.

ClippingEndPointsClippingEndPointsClippingEndPointsClippingEndPointsclippingEndPointsclipping_end_points (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Anzahl der Konturpunkte am Anfang und Ende der Kontur, die für die Abstandsberechnung ignoriert werden sollen.

Defaultwert: 0

Wertevorschläge: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Restriktion: ClippingEndPoints >= 0

RowRowRowRowrowrow (input_control)  rectangle2.center.y HTuplefloatHTupleHtuple (real) (double) (double) (double)

Zeilenkoordinate des Mittelpunktes des Rechtecks.

ColumnColumnColumnColumncolumncolumn (input_control)  rectangle2.center.x HTuplefloatHTupleHtuple (real) (double) (double) (double)

Spaltenkoordinate des Mittelpunktes des Rechtecks.

PhiPhiPhiPhiphiphi (input_control)  rectangle2.angle.rad HTuplefloatHTupleHtuple (real) (double) (double) (double)

Orientierung der Hauptachse des Rechtecks in Bogenmaß.

Length1Length1Length1Length1length1length_1 (input_control)  rectangle2.hwidth HTuplefloatHTupleHtuple (real) (double) (double) (double)

Erster Halbmesser (halbe Länge) des Rechtecks.

Restriktion: Length1 > 0

Length2Length2Length2Length2length2length_2 (input_control)  rectangle2.hheight HTuplefloatHTupleHtuple (real) (double) (double) (double)

Zweiter Halbmesser (halbe Breite) des Rechtecks.

Restriktion: Length2 >= 0

DistancesDistancesDistancesDistancesdistancesdistances (output_control)  real-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Abstände der Konturpunkte zum Rechteck.

Ergebnis

Sind die Parameterwerte korrekt, dann liefert dist_rectangle2_contour_points_xlddist_rectangle2_contour_points_xldDistRectangle2ContourPointsXldDistRectangle2ContourPointsXldDistRectangle2ContourPointsXlddist_rectangle2_contour_points_xld den Wert TRUE. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

fit_rectangle2_contour_xldfit_rectangle2_contour_xldFitRectangle2ContourXldFitRectangle2ContourXldFitRectangle2ContourXldfit_rectangle2_contour_xld

Modul

Foundation