Eigen values in 3D.
More...
#include <JEigenValues3D.hh>
Eigen values in 3D.
Definition at line 24 of file JEigenValues3D.hh.
◆ JEigenValues3D()
template<class T >
JGEOMETRY3D::JEigenValues3D::JEigenValues3D |
( |
T |
__begin, |
|
|
T |
__end |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
__begin | begin of data |
__end | end of data |
Definition at line 35 of file JEigenValues3D.hh.
46 for (
int i = 0; i != 3; ++i) {
47 for (
int j = 0;
j != 3; ++
j) {
52 for (T i = __begin; i != __end; ++i) {
54 const double dx = center.getX() - i->getX();
55 const double dy = center.getY() - i->getY();
56 const double dz = center.getZ() - i->getZ();
72 const TVectorD V = TMatrixDSymEigen(A).GetEigenValues();
74 N = V.GetNoElements();
◆ getN() [1/2]
int JGEOMETRY3D::JEigenValues3D::getN |
( |
| ) |
const |
|
inline |
Get number of eigen values.
- Returns
- number of eigen values
Definition at line 99 of file JEigenValues3D.hh.
◆ getN() [2/2]
int JGEOMETRY3D::JEigenValues3D::getN |
( |
double |
precision | ) |
const |
|
inline |
Get number of eigen values with minimal value.
- Parameters
-
- Returns
- number of eigen values
Definition at line 111 of file JEigenValues3D.hh.
115 if (fabs(
getX()) >= precision) ++
n;
116 if (fabs(
getY()) >= precision) ++
n;
117 if (fabs(
getZ()) >= precision) ++
n;
◆ operator JVector2D()
JGEOMETRY3D::JVector3D::operator JVector2D |
( |
| ) |
const |
|
inlineinherited |
Type conversion operator.
- Returns
- JVector2D
Definition at line 82 of file JVector3D.hh.
84 return JVector2D(this->
getX(), this->
getY());
◆ getX()
double JGEOMETRY3D::JVector3D::getX |
( |
| ) |
const |
|
inlineinherited |
Get x position.
- Returns
- x position
Definition at line 93 of file JVector3D.hh.
◆ getY()
double JGEOMETRY3D::JVector3D::getY |
( |
| ) |
const |
|
inlineinherited |
Get y position.
- Returns
- y position
Definition at line 103 of file JVector3D.hh.
◆ getZ()
double JGEOMETRY3D::JVector3D::getZ |
( |
| ) |
const |
|
inlineinherited |
Get z position.
- Returns
- z position
Definition at line 114 of file JVector3D.hh.
◆ negate()
JVector3D& JGEOMETRY3D::JVector3D::negate |
( |
| ) |
|
|
inlineinherited |
Negate vector.
- Returns
- this vector
Definition at line 125 of file JVector3D.hh.
◆ add()
Add vector.
- Parameters
-
- Returns
- this vector
Definition at line 141 of file JVector3D.hh.
◆ sub()
Subtract vector.
- Parameters
-
- Returns
- this vector
Definition at line 157 of file JVector3D.hh.
◆ mul() [1/2]
JVector3D& JGEOMETRY3D::JVector3D::mul |
( |
const double |
factor | ) |
|
|
inlineinherited |
Scale vector.
- Parameters
-
factor | multiplication factor |
- Returns
- this vector
Definition at line 173 of file JVector3D.hh.
◆ mul() [2/2]
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 273 of file JMath.hh.
◆ div()
JVector3D& JGEOMETRY3D::JVector3D::div |
( |
const double |
factor | ) |
|
|
inlineinherited |
Scale vector.
- Parameters
-
- Returns
- this vector
Definition at line 189 of file JVector3D.hh.
◆ transform()
Transform.
- Parameters
-
- Returns
- this vector
Definition at line 205 of file JVector3D.hh.
◆ equals()
bool JGEOMETRY3D::JVector3D::equals |
( |
const JVector3D & |
vector, |
|
|
const double |
precision = std::numeric_limits<double>::min() |
|
) |
| const |
|
inlineinherited |
Check equality.
- Parameters
-
vector | vector |
precision | precision |
- Returns
- true if vectors are equal; else false
Definition at line 220 of file JVector3D.hh.
223 return (fabs(
getX() - vector.
getX()) <= precision &&
224 fabs(
getY() - vector.
getY()) <= precision &&
225 fabs(
getZ() - vector.
getZ()) <= precision);
◆ getLengthSquared()
double JGEOMETRY3D::JVector3D::getLengthSquared |
( |
| ) |
const |
|
inlineinherited |
Get length squared.
- Returns
- square of length
Definition at line 234 of file JVector3D.hh.
◆ getLength()
double JGEOMETRY3D::JVector3D::getLength |
( |
| ) |
const |
|
inlineinherited |
◆ getDistanceSquared()
double JGEOMETRY3D::JVector3D::getDistanceSquared |
( |
const JVector3D & |
pos | ) |
const |
|
inlineinherited |
Get squared of distance to point.
- Parameters
-
- Returns
- square of distance
Definition at line 257 of file JVector3D.hh.
259 return JVector3D(pos).sub(*this).getLengthSquared();
◆ getDistance()
double JGEOMETRY3D::JVector3D::getDistance |
( |
const JVector3D & |
pos | ) |
const |
|
inlineinherited |
Get distance to point.
- Parameters
-
- Returns
- distance
Definition at line 269 of file JVector3D.hh.
◆ getDot()
double JGEOMETRY3D::JVector3D::getDot |
( |
const JVector3D & |
vector | ) |
const |
|
inlineinherited |
Get dot product.
- Parameters
-
- Returns
- dot product
Definition at line 281 of file JVector3D.hh.
◆ cross()
Get cross product.
Note that this vector should not overlap with the first or second vector,
- Parameters
-
first | first vector |
second | second vector |
- Returns
- this vector
Definition at line 298 of file JVector3D.hh.
int JGEOMETRY3D::JEigenValues3D::N |
|
protected |
◆ __x
double JGEOMETRY3D::JVector3D::__x |
|
protectedinherited |
◆ __y
double JGEOMETRY3D::JVector3D::__y |
|
protectedinherited |
◆ __z
double JGEOMETRY3D::JVector3D::__z |
|
protectedinherited |
The documentation for this class was generated from the following file: