#include <boost/python.hpp>
#include "G4Version.hh"
Go to the source code of this file.
void export_G4TwoVector |
( |
| ) |
|
Definition at line 61 of file pyG4TwoVector.cc.
63 #if G4VERSION_NUMBER >= 830
65 class_<G4TwoVector>(
"G4TwoVector",
"general 2-vector")
67 .def(init<G4double>())
68 .def(init<G4double, G4double>())
69 .def(init<const XXX&>())
72 .add_property(
"x", &
XXX::x, &XXX::setX)
73 .add_property(
"y", &XXX::y, &XXX::setY)
76 .def(
"set", &XXX::set)
77 .def(
"phi", &XXX::phi)
78 .def(
"mag", &XXX::mag)
79 .def(
"mag2", &XXX::mag2)
81 .def(
"setPhi", &XXX::setPhi)
82 .def(
"setMag", &XXX::setMag)
83 .def(
"setR", &XXX::setR)
84 .def(
"setPolar", &XXX::setPolar)
85 .def(
"howNear", &XXX::howNear)
86 .def(
"isNear", &XXX::isNear, f_isNear())
87 .def(
"howParallel", &XXX::howParallel)
88 .def(
"isParallel", &XXX::isParallel, f_isParallel())
89 .def(
"howOrthogonal", &XXX::howOrthogonal)
90 .def(
"isOrthogonal", &XXX::isOrthogonal, f_isOrthogonal())
91 .def(
"unit", &XXX::unit)
92 .def(
"orthogonal", &XXX::orthogonal)
93 .def(
"dot", &XXX::dot)
95 .def(
"rotate", &XXX::rotate)
98 .def(self_ns::str(
self))
static G4double angle[DIM]