A 3-vector with more efficient storage than TVector3. More...
#include <SRVector3D.h>
Public Member Functions | |
SRVector3D () | |
SRVector3D (float x, float y, float z) | |
SRVector3D (const TVector3 &v) | |
Easy conversion from TVector3. More... | |
virtual | ~SRVector3D ()=default |
void | SetXYZ (float x, float y, float z) |
operator TVector3 () const | |
Easy conversion back to TVector3. More... | |
void | SetX (float _x) |
void | SetY (float _y) |
void | SetZ (float _z) |
float | X () const |
float | Y () const |
float | Z () const |
float | Mag2 () const |
float | Mag () const |
float | Dot (const SRVector3D &v) const |
SRVector3D | Unit () const |
SRVector3D | operator+ (const SRVector3D &other) const |
SRVector3D | operator- (const SRVector3D &other) const |
SRVector3D () | |
SRVector3D (float x, float y, float z) | |
Public Attributes | |
float | x |
float | y |
float | z |
A 3-vector with more efficient storage than TVector3.
Definition at line 25 of file SRVector3D.h.
caf::SRVector3D::SRVector3D | ( | ) |
Definition at line 13 of file SRVector3D.cxx.
caf::SRVector3D::SRVector3D | ( | float | x, |
float | y, | ||
float | z | ||
) |
Definition at line 19 of file SRVector3D.cxx.
|
explicit |
|
virtualdefault |
caf::SRVector3D::SRVector3D | ( | ) |
caf::SRVector3D::SRVector3D | ( | float | x, |
float | y, | ||
float | z | ||
) |
|
inline |
Definition at line 57 of file SRVector3D.h.
|
inline |
Definition at line 56 of file SRVector3D.h.
|
inline |
Definition at line 55 of file SRVector3D.h.
caf::SRVector3D::operator TVector3 | ( | ) | const |
|
inline |
Definition at line 65 of file SRVector3D.h.
|
inline |
Definition at line 66 of file SRVector3D.h.
|
inline |
Definition at line 44 of file SRVector3D.h.
void caf::SRVector3D::SetXYZ | ( | float | x, |
float | y, | ||
float | z | ||
) |
Definition at line 27 of file SRVector3D.cxx.
|
inline |
Definition at line 45 of file SRVector3D.h.
|
inline |
Definition at line 46 of file SRVector3D.h.
|
inline |
Definition at line 58 of file SRVector3D.h.
|
inline |
Definition at line 48 of file SRVector3D.h.
|
inline |
Definition at line 49 of file SRVector3D.h.
|
inline |
Definition at line 50 of file SRVector3D.h.
float caf::SRVector3D::x |
Definition at line 71 of file SRVector3D.h.
float caf::SRVector3D::y |
Definition at line 72 of file SRVector3D.h.
float caf::SRVector3D::z |
Definition at line 73 of file SRVector3D.h.