![]() |
typedef struct in delphi
Tach.
Und wieder mal eine Frage über C++ - Delphi- Umsetzung.
Delphi-Quellcode:
typedef struct tCCInfo {
double m[3]; // centre of gravity of colorcluster during calibration double m2[3]; // offset of CoG after rotation double U[3][3]; // rotation-matrix for Rodrigues-Formula double matrixR[9]; // yet another rotation-matrix double angle; // angle of color-distortion } tCCInfo; Wie übersetzt man dette? Danke! ps In meiner Delphi - Hilfe steht nichts davon! :stupid: :coder: |
Re: typedef struct in delphi
Delphi-Quellcode:
Ohne Gewähr.
type
tCCInfo = packed record m: Array of Double[0..2]; U: Array[0..1] of Array[0..2] of Double; matrixR: Array[0..8] of Double; angle: Double; end; |
Re: typedef struct in delphi
Zitat:
Ich danke Dir :zwinker: |
Re: typedef struct in delphi
Ich seh grad, ich hab m2 übersehen :gruebel:
Kriegste das alleine hin? |
Re: typedef struct in delphi
Übrigens,
U: Array[0..2] of Array[0..2] of Double - ist es nicht dasselbe, wie U: array[0..2,0..2] of double? |
Re: typedef struct in delphi
und U stimmt auch nicht!
|
Re: typedef struct in delphi
Zitat:
Delphi-Quellcode:
U: Array[0..1] of Array[0..2] of Double und nicht ..[0..2] of ..[0..2] of..? |
Re: typedef struct in delphi
Zitat:
Ich hab anstelle der 3 wohl die 2 von m2 gesehen. :oops: |
Re: typedef struct in delphi
ist schon jut :lol:
|
Re: typedef struct in delphi
Bei mehrdimensionalen Arrays muss man aufpassen. Ich glaube C und Delphi unterscheiden sich in der Reihenfolge von Zeilen und Spalten.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:57 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz