#include <Vector3.h>
Inheritance diagram for OSCAR::Vector3:

Public Methods | |
| Vector3 () | |
| Vector3 (double x, double y, double z) | |
| Vector3 (double *array) | |
| Vector3 (const Vector &arg) | |
| virtual | ~Vector3 () |
| double & | X () |
| const double & | X () const |
| double & | Y () |
| const double & | Y () const |
| double & | Z () |
| const double & | Z () const |
| double | GetX () const |
| double | GetY () const |
| double | GetZ () const |
| double | Distance (const Vector3 &vec) const |
| double | DistanceSqr (const Vector3 &vec) const |
| void | X (double x) |
| void | Y (double y) |
| void | Z (double z) |
| bool | operator== (const Vector3 &rhs) const |
| Vector3 | Cross (const Vector3 &v2) const |
| void | Null () |
| double | Dot (const Vector3 &rhs) const |
| Matrix | Cross () |
| Vector3 & | operator= (const Vector3 &rhs) |
| Vector3 & | operator= (const Vector &rhs) |
| Vector3 & | operator= (double rhs) |
| Vector3 & | operator+= (const Vector3 &rhs) |
| Vector3 & | operator-= (const Vector3 &rhs) |
| Vector3 & | operator *= (const Vector3 &rhs) |
| Vector3 & | operator+= (double rhs) |
| Vector3 & | operator-= (double rhs) |
| Vector3 & | operator *= (double rhs) |
| Vector3 & | operator/= (double rhs) |
| Vector3 | operator+ (const Vector3 &rhs) const |
| void | Add (const Vector3 &rhs, Vector3 &result) const |
| Vector3 | operator- (const Vector3 &rhs) const |
| void | Subtract (const Vector3 &rhs, Vector3 &result) const |
| Vector3 | operator * (const Vector3 &rhs) const |
| void | Multiply (const Vector3 &rhs, Vector3 &result) const |
| Vector3 | operator * (double rhs) const |
| void | Multiply (double rhs, Vector3 &result) const |
| Vector3 | operator+ (double rhs) const |
| void | Add (double rhs, Vector3 &result) const |
| Vector3 | operator- (double rhs) const |
| void | Subtract (double rhs, Vector3 &result) const |
| Vector3 | operator/ (double rhs) const |
| bool | Divide (double rhs, Vector3 &result) const |
Protected Methods | |
| void | init (const double *array=0) |
|
|
Contructor. Constructs an Vector3 with all elements initalized to to 0.0. |
|
||||||||||||||||
|
Constructor. Constructs an Vector3 with certain X,Y,Z values.
|
|
|
Constructor. Constructs an Vector3 with elements initialized from an array of type double.
|
|
|
Constructor. Constructs an Vector3 with initialized with the first 3 values from the argument, an VectorNumeric<double>. Behavior is not defined for arguments with less than 3 elements.
|
|
|
Destructor. This is the Destructor for an object of type Vector3. |
|
||||||||||||
|
Add a number to this vector. This is a more efficient version of the operator+.
|
|
||||||||||||
|
Add two vectors. This is a more efficient version of the operator+.
|
|
|
Get a 3x3 cross product matrix for a Vector3. This method is used to get a 3x3 cross product matrix for a Vector3.
|
|
|
Get the cross product of two Vector3s. This method is used to get the cross product of two Vector3s.
|
|
|
Get the Euclidian distance between two spatial vectors.
|
|
|
Get the square of the Euclidian distance between two spatial vectors.
|
|
||||||||||||
|
Divide this vector by a number. The number should not be zero. This is a more efficient version of the operator/.
|
|
|
Return the dot (inner) product between a Vector3 object and the calling object. This method returns performs the dot product between vectors. Return value is sum over all 3 of this.at(i)*rhs.at(i)
|
|
|
Get a copy of the first element of an Vector3. This method is used to get a copy of the first element of an Vector3.
|
|
|
Get a copy of the second element of an Vector3. This method is used to get a copy of the second element of an Vector3.
|
|
|
Get a copy of the third element of an Vector3. This method is used to get a copy of the third element of an Vector3.
|
|
|
Initialize a Vector3. This method is used to initialize a Vector3. The pointer to the array is optional, and by default is null.
|
|
||||||||||||
|
Multiply a number with this vector. This is a more efficient version of the operator*.
|
|
||||||||||||
|
Multiply two vectors. This is a more efficient version of the operator*.
|
|
|
Sets this vector to the null vector Sets all elements of the vector to zero.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Divides the calling vector by a number. The number should not be zero.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Overloaded == operator. Overloaded == operator. This operator checks to see if two Vector3 are equal or not.
|
|
||||||||||||
|
Substract a number from this vector. This is a more efficient version of the operator-.
|
|
||||||||||||
|
Substract two vectors. This is a more efficient version of the operator-.
|
|
|
Set the value of the first element of an Vector3. This method is used to set the value of the first element of an Vector3.
|
|
|
Get a const reference to the first element of an Vector3. This method is used to get a const reference to the first element of an Vector3.
|
|
|
Get a reference to the first element of an Vector3. This method is used to get a reference to the first element of an Vector3.
|
|
|
Set the value of the second element of an Vector3. This method is used to set the value of the second element of an Vector3.
|
|
|
Get a const reference to the second element of an Vector3. This method is used to get a const reference to the second element of an Vector3.
|
|
|
Get a reference to the second element of an Vector3. This method is used to get a reference to the second element of an Vector3.
|
|
|
Set the value of the third element of an Vector3. This method is used to set the value of the third element of an Vector3.
|
|
|
Get a const reference to the third element of an Vector3. This method is used to get a const reference to the third element of an Vector3.
|
|
|
Get a reference to the third element of an Vector3. This method is used to get a reference to the third element of an Vector3.
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |