convenience wrapper over apf::Vector<3> More...
Public Member Functions | |
Vector3 (double a, double b, double c) | |
construct from 3 values | |
Vector3 (double const *abc) | |
construct from array | |
void | toArray (double *abc) const |
write vector to array | |
void | fromArray (const double *abc) |
read vector from array | |
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 |
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
apf::Vector3::Vector3 | ( | double | a, | |
double | b, | |||
double | c | |||
) | [inline] |
construct from 3 values
this is commonly used for hardcoding vectors
apf::Vector3::Vector3 | ( | double const * | abc | ) | [inline] |
construct from array
void apf::Vector3::fromArray | ( | const double * | abc | ) | [inline] |
read vector from array
void apf::Vector3::toArray | ( | double * | abc | ) | const [inline] |
write vector to array