molecular
Public Member Functions | List of all members
molecular::util::Vector4 Class Reference

Four-dimensional vector. More...

#include <Vector4.h>

Inheritance diagram for molecular::util::Vector4:
molecular::util::VectorTmpl< 4, Vector4 >

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
 
- Public Member Functions inherited from molecular::util::VectorTmpl< 4, Vector4 >
 VectorTmpl ()
 
T operator[] (const int n) const
 
Toperator[] (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...
 
Subclassoperator+= (const VectorTmpl &in)
 
Subclassoperator*= (T r)
 Component-wise in-place multiplication. More...
 
Subclassoperator*= (const VectorTmpl &in)
 Component-wise in-place multiplication. More...
 
Subclass operator/ (T r) const
 Component-wise scalar division. More...
 
Subclassoperator/= (T r)
 Component-wise in-place scalar division. More...
 
Subclassoperator/= (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

- Public Types inherited from molecular::util::VectorTmpl< 4, Vector4 >
typedef float T
 
using Subclass = Vector4
 
- Protected Attributes inherited from molecular::util::VectorTmpl< 4, Vector4 >
T v [components]
 

Detailed Description

Four-dimensional vector.

Constructor & Destructor Documentation

molecular::util::Vector4::Vector4 ( )
inline
molecular::util::Vector4::Vector4 ( T  x,
T  y,
T  z,
T  w = 1 
)
inline
molecular::util::Vector4::Vector4 ( const Vector3 xyz,
T  w = 1 
)
inline

Member Function Documentation

Vector2 molecular::util::Vector4::Xy ( ) const
inline
Vector3 molecular::util::Vector4::Xyz ( ) const
inline

The documentation for this class was generated from the following file: