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

Two-dimensional vector. More...

#include <Vector.h>

Inheritance diagram for molecular::util::Vector2:
molecular::util::VectorTmpl< 2, Vector2 >

Public Member Functions

 Vector2 ()=default
 
 Vector2 (float x, float y)
 
- Public Member Functions inherited from molecular::util::VectorTmpl< 2, Vector2 >
 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< 2, Vector2 >
typedef float T
 
using Subclass = Vector2
 
- Protected Attributes inherited from molecular::util::VectorTmpl< 2, Vector2 >
T v [components]
 

Detailed Description

Two-dimensional vector.

Constructor & Destructor Documentation

molecular::util::Vector2::Vector2 ( )
default
molecular::util::Vector2::Vector2 ( float  x,
float  y 
)
inline

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