33 #include <boost/python.hpp>
36 using namespace boost::python;
43 namespace pyG4RotationMatrix {
50 using namespace pyG4RotationMatrix;
57 class_<G4RotationMatrix>(
"G4RotationMatrix",
"rotation matrix")
59 .def(init<const XXX&>())
63 .add_property(
"xy", &XXX::xy)
64 .add_property(
"xz", &XXX::xz)
65 .add_property(
"yx", &XXX::yx)
67 .add_property(
"yz", &XXX::yz)
68 .add_property(
"zx", &XXX::zx)
69 .add_property(
"zy", &XXX::zy)
71 .def_readonly(
"IDENTITY", &XXX::IDENTITY)
74 .def(
"colX", &XXX::colX)
75 .def(
"colY", &XXX::colY)
76 .def(
"colZ", &XXX::colZ)
77 .def(
"rowX", &XXX::rowX)
78 .def(
"rowY", &XXX::rowY)
79 .def(
"rowZ", &XXX::rowZ)
80 .def(
"getPhi", &XXX::getPhi)
81 .def(
"getTheta", &XXX::getTheta)
82 .def(
"getPsi", &XXX::getPsi)
83 .def(
"phi", &XXX::phi)
84 .def(
"theta", &XXX::theta)
85 .def(
"psi", &XXX::psi)
86 .def(
"getDelta", &XXX::getDelta)
87 .def(
"getAxis", &XXX::getAxis)
88 .def(
"delta", &XXX::axis)
89 .def(
"axis", &XXX::delta)
90 .def(
"phiX", &XXX::phiX)
91 .def(
"phiY", &XXX::phiY)
92 .def(
"phiZ", &XXX::phiZ)
93 .def(
"thetaX", &XXX::thetaX)
94 .def(
"thetaY", &XXX::thetaY)
95 .def(
"thetaZ", &XXX::thetaZ)
96 .def(
"setPhi", &XXX::setPhi)
97 .def(
"setTheta", &XXX::setTheta)
98 .def(
"setPsi", &XXX::setPsi)
99 .def(
"setAxis", &XXX::setAxis)
100 .def(
"setDelta", &XXX::setDelta)
101 .def(
"isIdentity", &XXX::isIdentity)
102 .def(
"rotateX", &XXX::rotateX,
103 return_value_policy<reference_existing_object>())
104 .def(
"rotateY", &XXX::rotateY,
105 return_value_policy<reference_existing_object>())
106 .def(
"rotateZ", &XXX::rotateZ,
107 return_value_policy<reference_existing_object>())
109 return_value_policy<reference_existing_object>())
111 return_value_policy<reference_existing_object>())
112 .def(
"rotateAxes", &XXX::rotateAxes,
113 return_value_policy<reference_existing_object>())
114 .def(
"inverse", &XXX::inverse)
115 .def(
"invert", &XXX::invert,
116 return_value_policy<reference_existing_object>())
119 .def(self_ns::str(
self))