32 #include <boost/python.hpp>
36 using namespace boost::python;
37 using namespace CLHEP;
44 namespace pyG4TwoVector {
52 using namespace pyG4TwoVector;
59 class_<G4TwoVector>(
"G4TwoVector",
"general 2-vector")
61 .def(init<G4double>())
62 .def(init<G4double, G4double>())
63 .def(init<const XXX&>())
66 .add_property(
"x", &
XXX::x, &XXX::setX)
67 .add_property(
"y", &
XXX::y, &XXX::setY)
70 .def(
"set", &XXX::set)
71 .def(
"phi", &XXX::phi)
72 .def(
"mag", &XXX::mag)
73 .def(
"mag2", &XXX::mag2)
75 .def(
"setPhi", &XXX::setPhi)
76 .def(
"setMag", &XXX::setMag)
77 .def(
"setR", &XXX::setR)
78 .def(
"setPolar", &XXX::setPolar)
79 .def(
"howNear", &XXX::howNear)
80 .def(
"isNear", &XXX::isNear, f_isNear())
81 .def(
"howParallel", &XXX::howParallel)
82 .def(
"isParallel", &XXX::isParallel, f_isParallel())
83 .def(
"howOrthogonal", &XXX::howOrthogonal)
84 .def(
"isOrthogonal", &XXX::isOrthogonal, f_isOrthogonal())
85 .def(
"unit", &XXX::unit)
86 .def(
"orthogonal", &XXX::orthogonal)
87 .def(
"dot", &XXX::dot)
89 .def(
"rotate", &XXX::rotate)
92 .def(self_ns::str(
self))
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
ExN03DetectorConstruction XXX
void export_G4TwoVector()