Jpp
pmt_effective_area_update
the software that should make you happy
|
Hit. More...
#include <JHit.hh>
Public Member Functions | |
JHit () | |
Default constructor. More... | |
JHit (const int id, const double z, const JQuaternion3D &Q, const double sigma) | |
Constructor. More... | |
double | getZ () const |
Get z-position. More... | |
double | getSigma () const |
Get resolution. More... | |
int | getID () const |
Get identifier. More... | |
int & | getID () |
Get identifier. More... | |
void | setID (const int id) |
Set identifier. More... | |
bool | less (const JObjectID &object) const |
Less than method. More... | |
bool | less (const int id) const |
Less than method. More... | |
bool | more (const int id) const |
More than method. More... | |
const JQuaternion3D & | getQuaternion () const |
Get quaternion. More... | |
JQuaternion3D & | getQuaternion () |
Get quaternion. More... | |
void | setQuaternion (const JQuaternion3D &quaternion) |
Set quaternion. More... | |
operator JVector3D () const | |
Type conversion operator. More... | |
operator JVersor3D () const | |
Type conversion operator. More... | |
double | getAngle () const |
Get rotation angle. More... | |
double | getA () const |
Get a value. More... | |
double | getB () const |
Get b value. More... | |
double | getC () const |
Get c value. More... | |
double | getD () const |
Get d value. More... | |
JQuaternion3D & | setIdentity () |
Set to identity quaternion. More... | |
JQuaternion3D & | conjugate () |
Conjugate quaternion. More... | |
JQuaternion3D & | negate () |
Negate quaternion. More... | |
JQuaternion3D & | add (const JQuaternion3D &quaternion) |
Add quaternion. More... | |
JQuaternion3D & | sub (const JQuaternion3D &quaternion) |
Subtract quaternion. More... | |
JQuaternion3D & | mul (const double factor) |
Scale quaternion. More... | |
JQuaternion3D & | mul (const JQuaternion3D &first, const JQuaternion3X &second) |
Quaternion multiplication. More... | |
JQuaternion3D & | mul (const JQuaternion3D &first, const JQuaternion3Y &second) |
Quaternion multiplication. More... | |
JQuaternion3D & | mul (const JQuaternion3D &first, const JQuaternion3Z &second) |
Quaternion multiplication. More... | |
JQuaternion3D & | mul (const JQuaternion3D &first, const JQuaternion3D &second) |
Quaternion multiplication. More... | |
JQuaternion3D & | mul (const JQuaternion3X &qx, const JQuaternion3Y &qy, const JQuaternion3Z &qz) |
Quaternion multiplication. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
JQuaternion3D & | div (const double factor) |
Scale quaternion. More... | |
void | rotate (double &__x, double &__y, double &__z) const |
Rotate. More... | |
void | rotate_back (double &__x, double &__y, double &__z) const |
Rotate back. More... | |
bool | equals (const JQuaternion3D &quaternion, const double precision=std::numeric_limits< double >::min()) const |
Check equality. More... | |
bool | isIdentity (const double precision=std::numeric_limits< double >::min()) const |
Test identity. More... | |
double | getLengthSquared () const |
Get length squared. More... | |
double | getLength () const |
Get length. More... | |
double | getDistanceSquared (const JQuaternion3D &quaternion) const |
Get squared of distance to quaternion. More... | |
double | getDistance (const JQuaternion3D &quaternion) const |
Get distance to quaternion. More... | |
double | getDot (const JQuaternion3D &quaternion) const |
Get dot product. More... | |
JQuaternion3D | getConjugate () const |
Get conjugate of this quaternion. More... | |
JQuaternion3D & | normalise () |
Normalise quaternion. More... | |
JQuaternion3D & | pow (const double y) |
Raise quaternion to given power. More... | |
JQuaternion3D & | interpolate (const JQuaternion3D &object, const double alpha) |
Interpolation between quaternions. More... | |
Static Public Member Functions | |
static const JQuaternion3D & | getIdentity () |
Get identity quaternion. More... | |
Protected Attributes | |
double | z |
double | sigma |
int | __id |
double | __a |
double | __b |
double | __c |
double | __d |
Hit.
Definition at line 22 of file JCompass/JHit.hh.
|
inline |
Default constructor.
Definition at line 29 of file JCompass/JHit.hh.
|
inline |
Constructor.
id | identifier |
z | z-position |
Q | quaternion |
sigma | resolution [deg] |
Definition at line 45 of file JCompass/JHit.hh.
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Less than method.
object | object identifier |
Definition at line 84 of file JObjectID.hh.
|
inlineinherited |
Less than method.
id | identifier |
Definition at line 96 of file JObjectID.hh.
|
inlineinherited |
More than method.
id | identifier |
Definition at line 108 of file JObjectID.hh.
|
inlinestaticinherited |
Get identity quaternion.
Definition at line 463 of file JQuaternion3D.hh.
|
inlineinherited |
Get quaternion.
Definition at line 476 of file JQuaternion3D.hh.
|
inlineinherited |
Get quaternion.
Definition at line 487 of file JQuaternion3D.hh.
|
inlineinherited |
Set quaternion.
quaternion | quaternion |
Definition at line 498 of file JQuaternion3D.hh.
|
inlineinherited |
|
inlineinherited |
Type conversion operator.
Definition at line 520 of file JQuaternion3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Add quaternion.
quaternion | quaternion |
Definition at line 637 of file JQuaternion3D.hh.
|
inlineinherited |
Subtract quaternion.
quaternion | quaternion |
Definition at line 654 of file JQuaternion3D.hh.
|
inlineinherited |
Scale quaternion.
factor | multiplication factor |
Definition at line 671 of file JQuaternion3D.hh.
|
inlineinherited |
Quaternion multiplication.
This method evaluates the Hamilton product (also called cross product).
first | first quaternion |
second | second quaternion |
Definition at line 708 of file JQuaternion3D.hh.
|
inlineinherited |
Quaternion multiplication.
This method evaluates the Hamilton product (or cross product).
first | first quaternion |
second | second quaternion |
Definition at line 728 of file JQuaternion3D.hh.
|
inlineinherited |
Quaternion multiplication.
This method evaluates the Hamilton product (or cross product).
first | first quaternion |
second | second quaternion |
Definition at line 749 of file JQuaternion3D.hh.
|
inlineinherited |
Quaternion multiplication.
This method evaluates the Hamilton product (or cross product).
first | first quaternion |
second | second quaternion |
Definition at line 770 of file JQuaternion3D.hh.
|
inlineinherited |
Quaternion multiplication.
qx | rotation around x-axis |
qy | rotation around y-axis |
qz | rotation around x-axis |
Definition at line 790 of file JQuaternion3D.hh.
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 357 of file JMath.hh.
|
inlineinherited |
Scale quaternion.
factor | division factor |
Definition at line 688 of file JQuaternion3D.hh.
|
inlineinherited |
Rotate.
__x | x value |
__y | y value |
__z | z value |
Definition at line 805 of file JQuaternion3D.hh.
|
inlineinherited |
Rotate back.
__x | x value |
__y | y value |
__z | z value |
Definition at line 824 of file JQuaternion3D.hh.
|
inlineinherited |
Check equality.
quaternion | quaternion |
precision | numerical precision |
Definition at line 843 of file JQuaternion3D.hh.
|
inlineinherited |
Test identity.
precision | precision |
Definition at line 859 of file JQuaternion3D.hh.
|
inlineinherited |
|
inlineinherited |
Get length.
Definition at line 897 of file JQuaternion3D.hh.
|
inlineinherited |
Get squared of distance to quaternion.
quaternion | quaternion |
Definition at line 909 of file JQuaternion3D.hh.
|
inlineinherited |
Get distance to quaternion.
quaternion | quaternion |
Definition at line 921 of file JQuaternion3D.hh.
|
inlineinherited |
Get dot product.
quaternion | quaternion |
Definition at line 933 of file JQuaternion3D.hh.
|
inlineinherited |
Get conjugate of this quaternion.
Definition at line 948 of file JQuaternion3D.hh.
|
inlineinherited |
Normalise quaternion.
Definition at line 959 of file JQuaternion3D.hh.
|
inlineinherited |
Raise quaternion to given power.
y | power |
Definition at line 977 of file JQuaternion3D.hh.
|
inlineinherited |
Interpolation between quaternions.
The result is equal to *this = (1 - alpha) * (*this) + (alpha) * (object)
.
object | object |
alpha | interpolation factor [0, 1] |
Definition at line 1004 of file JQuaternion3D.hh.
|
protected |
Definition at line 78 of file JCompass/JHit.hh.
|
protected |
Definition at line 79 of file JCompass/JHit.hh.
|
protectedinherited |
Definition at line 140 of file JObjectID.hh.
|
protectedinherited |
Definition at line 1115 of file JQuaternion3D.hh.
|
protectedinherited |
Definition at line 1116 of file JQuaternion3D.hh.
|
protectedinherited |
Definition at line 1117 of file JQuaternion3D.hh.
|
protectedinherited |
Definition at line 1118 of file JQuaternion3D.hh.