OpenStructure
|
#include <vec3.hh>
Public Member Functions | |
Vec3 () | |
Vec3 (Real px, Real py, Real pz) | |
Vec3 (const Vec3 &v) | |
Vec3 (const Vec2 &v) | |
Vec3 (const Vec4 &v) | |
Vec3 (Real v) | |
Vec3 (const double v[3]) | |
Vec3 (const float v[3]) | |
Vec3 & | operator= (const Vec3 &v) |
bool | operator== (const Vec3 &rhs) const |
Real & | operator[] (std::size_t indx) |
const Real & | operator[] (std::size_t indx) const |
Real | GetX () const |
Real | GetY () const |
Real | GetZ () const |
void | SetX (Real v) |
void | SetY (Real v) |
void | SetZ (Real v) |
Vec3 & | operator+= (const Vec3 &rhs) |
Vec3 & | operator+= (Real d) |
Vec3 & | operator-= (const Vec3 &rhs) |
Vec3 & | operator-= (Real d) |
Vec3 | operator- () const |
Vec3 & | operator*= (Real d) |
Vec3 & | operator/= (Real d) |
Real * | Data () |
const Real * | Data () const |
Data Fields | |
Real | x |
Real | y |
Real | z |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |