7 #include "NaifDskApi.h"
10 #include <tnt/tnt_array1d.h>
11 #include <tnt/tnt_array1d_utils.h>
12 #include <tnt/tnt_array2d.h>
13 #include <tnt/tnt_array2d_utils.h>
29 if ( 3 != v.dim1() )
return (
false);
43 if ( 3 != t.dim1() )
return (
false);
44 if ( 3 != t.dim2() )
return (
false);
57 QDebug
operator<<(QDebug dbg,
const TNT::Array1D<SpiceDouble> &tntArray) {
72 QDebug
operator<<(QDebug dbg,
const TNT::Array2D<SpiceDouble> &tntMatrix) {
73 for (
int i = 0; i < tntMatrix.dim1(); i++) {
75 for (
int j = 0; j < tntMatrix.dim2(); j++) {
76 dbg.nospace() <<
toString(tntMatrix[i][j], 15) <<
" ";
78 dbg.nospace() << endl;
95 QString
toString(
const TNT::Array1D<SpiceDouble> &naifArray,
int precision) {
96 QString result =
"( ";
97 for (
int i = 0; i < naifArray.dim1(); i++) {
98 result +=
toString(naifArray[i], precision);
99 if (i != naifArray.dim1() - 1) result +=
", ";