31#include <boost/python.hpp>
35using namespace boost::python;
58 class_<G4TwoVector>(
"G4TwoVector",
"general 2-vector")
60 .def(init<G4double>())
61 .def(init<G4double, G4double>())
62 .def(init<const XXX&>())
65 .add_property(
"x", &XXX::x, &XXX::setX)
66 .add_property(
"y", &XXX::y, &XXX::setY)
71 .def(
"mag", &XXX::mag)
72 .def(
"mag2", &XXX::mag2)
75 .def(
"setMag", &XXX::setMag)
76 .def(
"setR", &XXX::setR)
77 .def(
"setPolar", &XXX::setPolar)
80 .def(
"howParallel", &XXX::howParallel)
81 .def(
"isParallel", &XXX::isParallel, f_isParallel())
82 .def(
"howOrthogonal", &XXX::howOrthogonal)
83 .def(
"isOrthogonal", &XXX::isOrthogonal, f_isOrthogonal())
84 .def(
"unit", &XXX::unit)
85 .def(
"orthogonal", &XXX::orthogonal)
86 .def(
"dot", &XXX::dot)
91 .def(self_ns::str(self))
static const G4double angle[DIMMOTT]
HepRotation & rotate(double delta, const Hep3Vector &axis)
HepRotation & set(const Hep3Vector &axis, double delta)
bool isNear(const HepRotation &r, double epsilon=Hep4RotationInterface::tolerance) const
double howNear(const HepRotation &r) const
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ClearWaitingStack, ClearWaitingStack, 0, 1) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetNWaitingTrack
void export_G4TwoVector()