![]() |
JSBSim Flight Dynamics Model
1.0 (02 March 2017)
An Open Source Flight Dynamics and Control Software Library in C++
|
This class implements a 3 element column vector. More...
#include <FGColumnVector3.h>
Public Member Functions | |
| FGColumnVector3 (void) | |
| Default initializer. More... | |
| FGColumnVector3 (const double X, const double Y, const double Z) | |
| Initialization by given values. More... | |
| FGColumnVector3 (const FGColumnVector3 &v) | |
| Copy constructor. More... | |
| ~FGColumnVector3 (void) | |
| Destructor. | |
| std::string | Dump (const std::string &delimeter) const |
| Prints the contents of the vector. More... | |
| double | Entry (const unsigned int idx) const |
| Read access the entries of the vector. More... | |
| double & | Entry (const unsigned int idx) |
| Write access the entries of the vector. More... | |
| void | InitMatrix (void) |
| void | InitMatrix (const double a) |
| void | InitMatrix (const double a, const double b, const double c) |
| double | Magnitude (void) const |
| Length of the vector. More... | |
| double | Magnitude (const int idx1, const int idx2) const |
| Length of the vector in a coordinate axis plane. More... | |
| FGColumnVector3 & | Normalize (void) |
| Normalize. More... | |
| bool | operator!= (const FGColumnVector3 &b) const |
| Comparison operator. More... | |
| double | operator() (const unsigned int idx) const |
| Read access the entries of the vector. More... | |
| double & | operator() (const unsigned int idx) |
| Write access the entries of the vector. More... | |
| FGColumnVector3 | operator* (const double scalar) const |
| Multiplication by a scalar. More... | |
| FGColumnVector3 | operator* (const FGColumnVector3 &V) const |
| Cross product multiplication. More... | |
| 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. More... | |
| FGColumnVector3 & | operator/= (const double scalar) |
| Scale by a 1/scalar. | |
| FGColumnVector3 & | operator= (const FGColumnVector3 &b) |
| Assignment operator. More... | |
| bool | operator== (const FGColumnVector3 &b) const |
| Comparison operator. More... | |
This class implements a 3 element column vector.
Definition at line 70 of file FGColumnVector3.h.
| FGColumnVector3 | ( | void | ) |
Default initializer.
Create a zero vector.
Definition at line 58 of file FGColumnVector3.cpp.
Here is the caller graph for this function:
|
inline |
Initialization by given values.
| 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 82 of file FGColumnVector3.h.
|
inline |
Copy constructor.
| v | Vector which is used for initialization. Create copy of the vector given in the argument. |
Definition at line 91 of file FGColumnVector3.h.
| string Dump | ( | const std::string & | delimeter | ) | const |
Prints the contents of the vector.
| delimeter | the item separator (tab or comma) |
Definition at line 66 of file FGColumnVector3.cpp.
Here is the caller graph for this function:
|
inline |
Read access the entries of the vector.
| 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 122 of file FGColumnVector3.h.
Here is the caller graph for this function:
|
inline |
Write access the entries of the vector.
| 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 132 of file FGColumnVector3.h.
Here is the call graph for this function:| double Magnitude | ( | void | ) | const |
Length of the vector.
Compute and return the euclidean norm of this vector.
Definition at line 112 of file FGColumnVector3.cpp.
Here is the caller graph for this function:| double Magnitude | ( | const int | idx1, |
| const int | idx2 | ||
| ) | const |
Length of the vector in a coordinate axis plane.
Compute and return the euclidean norm of this vector projected into the coordinate axis plane idx1-idx2.
Definition at line 131 of file FGColumnVector3.cpp.
| FGColumnVector3 & Normalize | ( | void | ) |
Normalize.
Normalize the vector to have the Magnitude() == 1.0. If the vector is equal to zero it is left untouched.
Definition at line 119 of file FGColumnVector3.cpp.
Here is the caller graph for this function:
|
inline |
Comparison operator.
| b | other vector. Returns false if both vectors are exactly the same. |
Definition at line 159 of file FGColumnVector3.h.
Here is the call graph for this function:
|
inline |
Read access the entries of the vector.
| 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 105 of file FGColumnVector3.h.
|
inline |
Write access the entries of the vector.
| 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 112 of file FGColumnVector3.h.
|
inline |
Multiplication by a scalar.
| scalar | scalar value to multiply the vector with. |
Definition at line 165 of file FGColumnVector3.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Cross product multiplication.
| V | vector to multiply with. |
Definition at line 180 of file FGColumnVector3.h.
Here is the call graph for this function:| FGColumnVector3 operator/ | ( | const double | scalar | ) | const |
Multiply by 1/scalar.
| scalar | scalar value to devide the vector through. |
Definition at line 85 of file FGColumnVector3.cpp.
Here is the caller graph for this function:
|
inline |
Assignment operator.
| b | source vector. Copy the content of the vector given in the argument into *this. |
Definition at line 142 of file FGColumnVector3.h.
|
inline |
Comparison operator.
| b | other vector. Returns true if both vectors are exactly the same. |
Definition at line 152 of file FGColumnVector3.h.
Here is the caller graph for this function: