|
ICAROUS
|
#include <Vect4.h>
Public Member Functions | |
| Vect4 (const double xx=0, const double yy=0, const double zz=0, const double tt=0) | |
| Vect4 (const Vect3 &v, double t) | |
| bool | isZero () const |
| bool | almostEquals (const Vect4 &v) const |
| bool | almostEquals (const Vect4 &v, INT64FM maxUlps) const |
| Vect4 | operator+ (const Vect4 &v) const |
| Vect4 | operator- (const Vect4 &v) const |
| Vect4 | operator- () const |
| Vect4 | operator* (const double k) const |
| double | operator* (const Vect4 &v) const |
| bool | operator== (const Vect4 &v) const |
| bool | operator!= (const Vect4 &v) const |
| Vect3 | vect3 () const |
| Vect2 | vect2 () const |
| Vect4 | Add (const Vect4 &v) const |
| Vect4 | Sub (const Vect4 &v) const |
| Vect4 | Neg () const |
| Vect4 | Scal (double k) const |
| Vect4 | ScalAdd (const double k, const Vect4 &v) const |
| int | breakSymmetry () const |
| double | dot (const double x, const double y, const double z, const double t) const |
| double | sqv () const |
| double | norm () const |
| double | lat () const |
| double | lon () const |
| std::string | toString () const |
Static Public Member Functions | |
| static const Vect4 & | ZERO () |
Public Attributes | |
| double | x |
| double | y |
| double | z |
| double | t |
A four dimensional mathematical vector
| larcfm::Vect4::Vect4 | ( | const double | xx = 0, |
| const double | yy = 0, |
||
| const double | zz = 0, |
||
| const double | tt = 0 |
||
| ) |
Construct a Vect4
| larcfm::Vect4::Vect4 | ( | const Vect3 & | v, |
| double | t | ||
| ) |
Construct a Vect4
| v | vector |
| t | time (4th dimension of vector) |
Return a new vector that is the addition of this vector and the parameter
| v | vector |
| bool larcfm::Vect4::almostEquals | ( | const Vect4 & | v | ) | const |
Checks if vectors are almost equal.
| v | Vector |
true, if this vector is almost equal to v. | bool larcfm::Vect4::almostEquals | ( | const Vect4 & | v, |
| INT64FM | maxUlps | ||
| ) | const |
Checks if vectors are almost equal.
| v | Vector |
| maxUlps | unit of least precision |
true, if this vector is almost equal to v. | int larcfm::Vect4::breakSymmetry | ( | ) | const |
A symmetry calculation
| double larcfm::Vect4::dot | ( | const double | x, |
| const double | y, | ||
| const double | z, | ||
| const double | t | ||
| ) | const |
The dot product of this vector and the parameter
| bool larcfm::Vect4::isZero | ( | ) | const |
Is this vector zero?
| double larcfm::Vect4::lat | ( | ) | const |
The latitude component of this vector
| double larcfm::Vect4::lon | ( | ) | const |
The longitude component of this vector
| Vect4 larcfm::Vect4::Neg | ( | ) | const |
Return a new vector that is the negation of this vector
| double larcfm::Vect4::norm | ( | ) | const |
The vector norm of this vector, i.e., the Euclidean distance
| bool larcfm::Vect4::operator!= | ( | const Vect4 & | v | ) | const |
Are these two vectors unequal?
| Vect4 larcfm::Vect4::operator* | ( | const double | k | ) | const |
Return a new vector that is the scale of this vector by k
| double larcfm::Vect4::operator* | ( | const Vect4 & | v | ) | const |
The dot product of this vector and the parameter
Return a new vector that is the addition of this vector and the parameter
| Vect4 larcfm::Vect4::operator- | ( | ) | const |
Return a new vector that is the negation of this vector
Return a new vector that is the subtract of this vector and the parameter
| bool larcfm::Vect4::operator== | ( | const Vect4 & | v | ) | const |
Are these two vectors equal?
| Vect4 larcfm::Vect4::Scal | ( | double | k | ) | const |
Return a new vector that is the scale of this vector by k
| k | scale factor |
Return a new vector that is this*k+v
| k | vector scale factor |
| v | vector |
| double larcfm::Vect4::sqv | ( | ) | const |
The sum of the square of each component
Return a new vector that is the subtract of this vector and the parameter
| v | vector |
| std::string larcfm::Vect4::toString | ( | ) | const |
A string representation of this vector
| Vect2 larcfm::Vect4::vect2 | ( | ) | const |
Return the x and y components of this vector
| Vect3 larcfm::Vect4::vect3 | ( | ) | const |
Return the x,y, and z components of this vector
|
static |
Return a zero vector
| double larcfm::Vect4::t |
t component
| double larcfm::Vect4::x |
x component
| double larcfm::Vect4::y |
y component
| double larcfm::Vect4::z |
z component