molecular
|
Generic vector with 3 elements. More...
#include <Vector3.h>
Public Types | |
using | Super = VectorTmpl< 3, Vector3T< T >, T > |
![]() | |
typedef T | T |
using | Subclass = Vector3T< T > |
Public Member Functions | |
Vector3T ()=default | |
Vector3T (const T x, const T y, const T z) | |
Vector3T (const T inV[3]) | |
Vector3T (const Vector2 &xy, float z) | |
T | X () const |
T | Y () const |
T | Z () const |
void | Get (T *out) const |
Vector2 | Xy () const |
Vector3T & | operator-= (const Vector3T &inV) |
Vector3T & | operator+= (const Vector3T &inV) |
Vector3T | CrossProduct (const Vector3T &inV) const |
T | DotProduct (const Vector3T &inV) const |
void | SetLength (const T length) |
T | Distance (const Vector3T &inV) const |
T | DistanceSquared (const Vector3T &inV) const |
bool | IsAlmostZero (void) const |
![]() | |
VectorTmpl () | |
T | operator[] (const int n) const |
T & | operator[] (const int n) |
operator const T * () const | |
operator T * () | |
Subclass | operator* (T r) const |
Component-wise multiplication. More... | |
Subclass | operator* (const VectorTmpl &in) const |
Component-wise multiplication. More... | |
Subclass & | operator+= (const VectorTmpl &in) |
Subclass & | operator*= (T r) |
Component-wise in-place multiplication. More... | |
Subclass & | operator*= (const VectorTmpl &in) |
Component-wise in-place multiplication. More... | |
Subclass | operator/ (T r) const |
Component-wise scalar division. More... | |
Subclass & | operator/= (T r) |
Component-wise in-place scalar division. More... | |
Subclass & | operator/= (const VectorTmpl &in) |
Component-wise in-place division. More... | |
Subclass | operator- (const VectorTmpl &in) const |
Subclass | operator- () const |
Subclass | operator+ (const VectorTmpl &in) const |
bool | operator== (const VectorTmpl &in) const |
T | LengthSquared () const |
T | Length () const |
Subclass | Normalized () const |
T | Dot (const VectorTmpl &in) |
Dot product. More... | |
Additional Inherited Members | |
![]() | |
T | v [components] |
Generic vector with 3 elements.
using molecular::util::Vector3T< T >::Super = VectorTmpl<3, Vector3T<T>, T> |
|
inlinedefault |
|
inline |
|
inline |
|
inline |
Vector3T< T > molecular::util::Vector3T< T >::CrossProduct | ( | const Vector3T< T > & | inV | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |