hom_mat3d_translate_local — Fügt eine Translation zu einer homogenen 3D-Transformationsmatrix hinzu.
hom_mat3d_translate_local( : : HomMat3D, Tx, Ty, Tz : HomMat3DTranslate)
hom_mat3d_translate_local fügt zur homogenen 3D-Transformationsmatrix
HomMat3D eine Translation um den Vektor
t = (Tx,Ty,Tz)
hinzu und liefert die resultierende Matrix in HomMat3DTranslate
zurück. Im Gegensatz zu hom_mat3d_translate wird die Translation
relativ zum lokalen Koordinatensystem, das durch HomMat3D
beschrieben ist, ausgeführt; dies entspricht der folgenden Kette von
Transformationsmatrizen:
Homogene Transformationsmatrizen werden zeilenweise in Form eines Tupels abgespeichert; die letzte Zeile wird im Normalfall nicht gespeichert, da sie für alle affinen Transformationsmatrizen identisch ist. Zum Beispiel wird die Matrix als das Tupel [ra, rb, rc, td, re, rf, rg, th, ri, rj, rk, tl] gespeichert. Es ist aber auch möglich, volle 4×4 Matrizen, die eine projektive 3D-Transformation darstellen können, zu verarbeiten.
HomMat3D (input_control) hom_mat3d → (real)
Eingabe-Transformationsmatrix.
Tx (input_control) point3d.x → (real / integer)
Verschiebung in x-Richtung.
Defaultwert: 64
Wertevorschläge: 0, 16, 32, 64, 128, 256, 512, 1024
Ty (input_control) point3d.y → (real / integer)
Verschiebung in y-Richtung.
Defaultwert: 64
Wertevorschläge: 0, 16, 32, 64, 128, 256, 512, 1024
Tz (input_control) point3d.z → (real / integer)
Verschiebung in z-Richtung.
Defaultwert: 64
Wertevorschläge: 0, 16, 32, 64, 128, 256, 512, 1024
HomMat3DTranslate (output_control) hom_mat3d → (real)
Ausgabe-Transformationsmatrix.
Sind die Parameterwerte korrekt, dann liefert
hom_mat3d_translate_local den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine
Fehlerbehandlung durchgeführt.
hom_mat3d_identity,
hom_mat3d_translate_local,
hom_mat3d_scale_local,
hom_mat3d_rotate_local
hom_mat3d_translate_local,
hom_mat3d_scale_local,
hom_mat3d_rotate_local
hom_mat3d_invert,
hom_mat3d_identity,
hom_mat3d_translate,
pose_to_hom_mat3d,
hom_mat3d_to_pose,
hom_mat3d_compose
Foundation