3 elements vector
More...
#include <vector3.h>
◆ Vector3() [1/5]
Default constructor.
- Parameters
-
◆ Vector3() [2/5]
◆ Vector3() [3/5]
◆ Vector3() [4/5]
◆ Vector3() [5/5]
◆ norm()
Get the norm of a Vector3.
- Returns
- T
◆ norm2()
Get the square of norm of a Vector3.
- Returns
- T
◆ normalize()
Normalize a Vector3.
- Returns
- Vector3<T>&
◆ operator*=()
Overload operator "*=" for (Vector3)*scalar.
- Parameters
-
- Returns
- Vector3<T>&
◆ operator+=()
Overload operator "+=" for Vector3.
- Parameters
-
- Returns
- Vector3<T>&
◆ operator-()
Overload operator "-" to get (-Vector3)
- Returns
- Vector3<T>
◆ operator-=()
Overload operator "-=" for Vector3.
- Parameters
-
- Returns
- Vector3<T>&
◆ operator/=()
Overload operator "/=" for Vector3.
- Parameters
-
- Returns
- Vector3<T>&
◆ operator=() [1/3]
◆ operator=() [2/3]
Overload operator "=" for Vector3.
- Parameters
-
- Returns
- Vector3<T>&
◆ operator=() [3/3]
Move assignment operator.
- Parameters
-
- Returns
- Vector3<T>&
◆ operator[]() [1/2]
Overload operator "[]" for accesing elements.
- Parameters
-
- Returns
- T&
◆ operator[]() [2/2]
Over load "[]" for accessing elements with pointers.
- Parameters
-
- Returns
- T
◆ print()
Print a Vector3 on standard output with formats.
Print a Vector3 on standard output with formats
- Parameters
-
| precision | The number of decimal places to display (must be positive, default: 5) |
| precision | The number of decimal places to display (must be positive, default: 5) |
◆ reverse()
◆ set()
set a 3d vector
- Parameters
-
The documentation for this class was generated from the following file:
- /home/runner/work/abacus-develop/abacus-develop/source/source_base/vector3.h