Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
Namespace List
Namespace Members
genie
pathsegutils
Functions
genie::pathsegutils Namespace Reference
Functions
string
Vec3AsString
(const TVector3 *vec)
Function Documentation
string
genie::pathsegutils::Vec3AsString
(
const TVector3 *
vec
)
Definition at line
63
of file
PathSegmentList.cxx
.
64
{
65
int
w
=17,
p
=10;
// precision setting only affects ostringstream
66
std::ostringstream fmt;
67
fmt <<
"("
<<
std::setw
(w) <<
std::setprecision
(
p
) << vec->x()
68
<<
","
<<
std::setw
(w) <<
std::setprecision
(
p
) << vec->y()
69
<<
","
<<
std::setw
(w+1) <<
std::setprecision
(
p
) << vec->z() <<
")"
;
70
return
fmt.str();
71
}
setprecision
Q_EXPORT QTSManip setprecision(int p)
Definition:
qtextstream.h:343
test.p
p
Definition:
test.py:223
setw
Q_EXPORT QTSManip setw(int w)
Definition:
qtextstream.h:331
projectgui.w
w
Definition:
projectgui.py:20
Generated by
1.8.11