molecular
|
Four-dimensional vector. More...
#include <Vector4.h>
Public Member Functions | |
Vector4 () | |
Vector4 (T x, T y, T z, T w=1) | |
Vector4 (const Vector3 &xyz, T w=1) | |
Vector3 | Xyz () const |
Vector2 | Xy () 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 | |
![]() | |
typedef float | T |
using | Subclass = Vector4 |
![]() | |
T | v [components] |
Four-dimensional vector.
|
inline |
|
inline |
|
inline |