#include <FGColumnVector3.h>
Inherits FGJSBBase.
Definition at line 83 of file FGColumnVector3.h.
Public Member Functions | |
| string | Dump (string delimeter) const |
| Prints the contents of the vector. | |
| double & | Entry (unsigned int idx) |
| Write access the entries of the vector. | |
| double | Entry (unsigned int idx) const |
| Read access the entries of the vector. | |
| FGColumnVector3 (const FGColumnVector3 &v) | |
| Copy constructor. | |
| FGColumnVector3 (double X, double Y, double Z) | |
| Initialization by given values. | |
| FGColumnVector3 (void) | |
| Default initializer. | |
| void | InitMatrix (double a, double b, double c) |
| void | InitMatrix (double a) |
| void | InitMatrix (void) |
| double | Magnitude (int idx1, int idx2) const |
| Length of the vector in a coordinate axis plane. | |
| double | Magnitude (void) const |
| Length of the vector. | |
| FGColumnVector3 & | Normalize (void) |
| Normalize. | |
| bool | operator!= (const FGColumnVector3 &b) const |
| Comparison operator. | |
| double & | operator() (unsigned int idx) |
| Write access the entries of the vector. | |
| double | operator() (unsigned int idx) const |
| Read access the entries of the vector. | |
| FGColumnVector3 | operator* (const FGColumnVector3 &V) const |
| Cross product multiplication. | |
| FGColumnVector3 | operator* (const double scalar) const |
| Multiplication by a scalar. | |
| FGColumnVector3 & | operator*= (const double scalar) |
| Scale by a scalar. | |
| FGColumnVector3 | operator+ (const FGColumnVector3 &B) const |
| Addition operator. | |
| FGColumnVector3 & | operator+= (const FGColumnVector3 &B) |
| Add an other vector. | |
| FGColumnVector3 | operator- (const FGColumnVector3 &B) const |
| Subtraction operator. | |
| FGColumnVector3 & | operator-= (const FGColumnVector3 &B) |
| Subtract an other vector. | |
| FGColumnVector3 | operator/ (const double scalar) const |
| Multiply by 1/scalar. | |
| FGColumnVector3 & | operator/= (const double scalar) |
| Scale by a 1/scalar. | |
| AssignRef | operator<< (const double ff) |
| FGColumnVector3 & | operator= (const FGColumnVector3 &b) |
| Assignment operator. | |
| bool | operator== (const FGColumnVector3 &b) const |
| Comparison operator. | |
| ~FGColumnVector3 (void) | |
| Destructor. | |
Classes | |
| struct | AssignRef |
| FGColumnVector3 | ( | void | ) |
Create a zero vector.
Definition at line 52 of file FGColumnVector3.cpp.
| FGColumnVector3 | ( | double | X, | |
| double | Y, | |||
| double | Z | |||
| ) | [inline] |
| X | value of the x-conponent. | |
| Y | value of the y-conponent. | |
| Z | value of the z-conponent. Create a vector from the doubles given in the arguments. |
Definition at line 95 of file FGColumnVector3.h.
| FGColumnVector3 | ( | const FGColumnVector3 & | v | ) | [inline] |
| v | Vector which is used for initialization. Create copy of the vector given in the argument. |
Definition at line 105 of file FGColumnVector3.h.
| string Dump | ( | string | delimeter | ) | const |
| delimeter | the item separator (tab or comma) |
Definition at line 60 of file FGColumnVector3.cpp.
| double& Entry | ( | unsigned int | idx | ) | [inline] |
| idx | the component index. Return a reference to the vector entry at the given index. Indices are counted starting with 1. This function is just a shortcut for the double& operator()(unsigned int idx) function. It is used internally to access the elements in a more convenient way. Note that the index given in the argument is unchecked. |
Definition at line 147 of file FGColumnVector3.h.
| double Entry | ( | unsigned int | idx | ) | const [inline] |
| idx | the component index. Return the value of the matrix entry at the given index. Indices are counted starting with 1. This function is just a shortcut for the double operator()(unsigned int idx) const function. It is used internally to access the elements in a more convenient way. Note that the index given in the argument is unchecked. |
Definition at line 137 of file FGColumnVector3.h.
| double Magnitude | ( | int | idx1, | |
| int | idx2 | |||
| ) | const [inline] |
Compute and return the euclidean norm of this vector projected into the coordinate axis plane idx1-idx2.
Definition at line 251 of file FGColumnVector3.h.
| double Magnitude | ( | void | ) | const |
Compute and return the euclidean norm of this vector.
Definition at line 104 of file FGColumnVector3.cpp.
| FGColumnVector3 & Normalize | ( | void | ) |
Normalize the vector to have the Magnitude() == 1.0. If the vector is equal to zero it is left untouched.
Definition at line 114 of file FGColumnVector3.cpp.
| bool operator!= | ( | const FGColumnVector3 & | b | ) | const [inline] |
| b | other vector. Returns false if both vectors are exactly the same. |
Definition at line 174 of file FGColumnVector3.h.
| double& operator() | ( | unsigned int | idx | ) | [inline] |
| idx | the component index. Return a reference to the vector entry at the given index. Indices are counted starting with 1. Note that the index given in the argument is unchecked. |
Definition at line 127 of file FGColumnVector3.h.
| double operator() | ( | unsigned int | idx | ) | const [inline] |
| idx | the component index. Return the value of the matrix entry at the given index. Indices are counted starting with 1. Note that the index given in the argument is unchecked. |
Definition at line 120 of file FGColumnVector3.h.
| FGColumnVector3 operator* | ( | const FGColumnVector3 & | V | ) | const [inline] |
| V | vector to multiply with. |
Definition at line 195 of file FGColumnVector3.h.
| FGColumnVector3 operator* | ( | const double | scalar | ) | const [inline] |
| scalar | scalar value to multiply the vector with. |
Definition at line 180 of file FGColumnVector3.h.
| FGColumnVector3 operator/ | ( | const double | scalar | ) | const |
| scalar | scalar value to devide the vector through. |
Definition at line 77 of file FGColumnVector3.cpp.
| FGColumnVector3& operator= | ( | const FGColumnVector3 & | b | ) | [inline] |
| b | source vector. Copy the content of the vector given in the argument into *this. |
Definition at line 157 of file FGColumnVector3.h.
| bool operator== | ( | const FGColumnVector3 & | b | ) | const [inline] |
| b | other vector. Returns true if both vectors are exactly the same. |
Definition at line 167 of file FGColumnVector3.h.
1.5.5