Vec3

class OpenMM::Vec3

This class represents a three component vector. It is used for storing positions, velocities, and forces.

Methods

Vec3

Create a Vec3 whose elements are all 0.

Vec3

Create a Vec3 with specified x, y, and z components.

operator[]

operator[]

operator==

operator!=

operator+

operator+

operator+=

operator-

operator-

operator-=

operator*

operator*=

operator/

operator/=

dot

cross

Vec3()

Create a Vec3() whose elements are all 0.

Vec3(double x, double y, double z)

Create a Vec3() with specified x, y, and z components.

double operator[](int index) const
double &operator[](int index)
bool operator==(const Vec3 &rhs) const
bool operator!=(const Vec3 &rhs) const
Vec3 operator+() const
Vec3 operator+(const Vec3 &rhs) const
Vec3 &operator+=(const Vec3 &rhs)
Vec3 operator-() const
Vec3 operator-(const Vec3 &rhs) const
Vec3 &operator-=(const Vec3 &rhs)
Vec3 operator*(double rhs) const
Vec3 &operator*=(double rhs)
Vec3 operator/(double rhs) const
Vec3 &operator/=(double rhs)
double dot(const Vec3 &rhs) const
Vec3 cross(const Vec3 &rhs) const