#include <Vector3.hpp>
Inheritance diagram for Ionflux::Tools::Vector3:
Public Member Functions | |
Vector3 () | |
Constructor. | |
Vector3 (double initX1, double initX2, double initX3) | |
Constructor. | |
Vector3 (const Vector3 &initVec) | |
Constructor. | |
Vector3 (const double *initComp) | |
Constructor. | |
virtual | ~Vector3 () |
Destructor. | |
virtual void | setComps (double newX1, double newX2, double newX3) |
Set components. | |
virtual void | setComps (const double *newComp) |
Set components. | |
virtual void | setComp (int compIndex, double newComp) |
Set component. | |
virtual std::string | toString () const |
Create string representation. | |
virtual Vector3 & | operator= (const Vector3 &newVec) |
Assignment operator. | |
virtual Vector3 | operator+ (const Vector3 &otherVec) const |
Add operator. | |
virtual Vector3 | operator- (const Vector3 &otherVec) const |
Subtract operator. | |
virtual Vector3 & | operator+= (const Vector3 &otherVec) |
Add operator. | |
virtual Vector3 & | operator-= (const Vector3 &otherVec) |
Subtract operator. | |
virtual double | operator * (const Vector3 &otherVec) const |
Multiply operator. | |
virtual Vector3 & | operator *= (double a) |
Multiply operator. | |
virtual Vector3 | operator * (double a) const |
Multiply operator. | |
virtual double | operator[] (int compIndex) const |
Subscript operator. | |
virtual void | setX1 (double newX1) |
Set x1 component. | |
virtual void | setX2 (double newX2) |
Set x2 component. | |
virtual void | setX3 (double newX3) |
Set x3 component. | |
virtual double | getX1 () const |
Get x1 component. | |
virtual double | getX2 () const |
Get x2 component. | |
virtual double | getX3 () const |
Get x3 component. | |
Protected Attributes | |
double * | comp |
Components. |
A vector in three dimensional space.
|
Constructor. Construct new Vector3 object. |
|
Constructor. Construct new Vector3 object.
|
|
Constructor. Construct new Vector3 object.
|
|
Constructor. Construct new Vector3 object.
|
|
Destructor. Destruct Vector3 object. |
|
Get x1 component.
|
|
Get x2 component.
|
|
Get x3 component.
|
|
Multiply operator. Calculate the product of the vector and a scalar.
|
|
Multiply operator. Calculate the scalar product of two vectors.
|
|
Multiply operator. Calculate the product of the vector and a scalar.
|
|
Add operator. Add one vector to another vector.
|
|
Add operator. Add one vector to another vector.
|
|
Subtract operator. Subtract one vector from another vector.
|
|
Subtract operator. Subtract one vector from another vector.
|
|
Assignment operator. Assign one vector to another vector.
|
|
Subscript operator. Access a component of the vector.
|
|
Set component. Set the specified component of the vector.
|
|
Set components. Set the components of the vector.
|
|
Set components. Set the components of the vector.
|
|
Set x1 component. Set new value of x1 component.
|
|
Set x2 component. Set new value of x2 component.
|
|
Set x3 component. Set new value of x3 component.
|
|
Create string representation. Create a string representation of the vector (i.e. "(<x1>,<x2>,<x3>))"). |
|
Components.
|