![]() |
SCOREC core
Parallel unstructured mesh tools
|
convenience wrapper over apf::Vector<3> More...
Public Member Functions | |
Vector3 (double a, double b, double c) | |
construct from 3 values More... | |
Vector3 (double const *abc) | |
construct from array More... | |
void | toArray (double *abc) const |
write vector to array More... | |
void | fromArray (const double *abc) |
read vector from array More... | |
double | x () const |
immutable x component | |
double | y () const |
immutable y component | |
double | z () const |
immutable z component | |
double & | x () |
mutable x component | |
double & | y () |
mutable y component | |
double & | z () |
mutable z component | |
![]() | |
Vector () | |
mandatory | |
Vector (double const *v) | |
construct from array | |
Vector< N > | operator+ (Vector< N > const &b) const |
add two vectors | |
Vector< N > & | operator+= (Vector< N > const &b) |
add a vector to this vector | |
Vector< N > | operator- (Vector< N > const &b) const |
subtract two vectors | |
Vector< N > | operator* (double s) const |
multiply a vector times a scalar More... | |
double | operator* (Vector< N > const &b) const |
vector dot product More... | |
Vector< N > | operator/ (double s) const |
divide a vector by a scalar More... | |
double | getLength () const |
get the vector magnitude | |
Vector< N > | normalize () const |
divide the vector by its magnitude | |
void | zero () |
zero the vector | |
convenience wrapper over apf::Vector<3>
this class adds some functions that could not be filled in by templates, mainly component-specific initialization and x/y/z names
Definition at line 150 of file apfVector.h.
|
inline |
construct from 3 values
this is commonly used for hardcoding vectors
Definition at line 159 of file apfVector.h.
|
inline |
|
inline |
|
inline |