Vec3

class simtk.openmm.vec3.Vec3

Vec3 is a 3-element tuple that supports many math operations.

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Methods

count(...)
index((value, [start, ...) Raises ValueError if the value is not present.
__getnewargs__()

Support for pickle protocol 2: http://docs.python.org/2/library/pickle.html#pickling-and-unpickling-normal-class-instances

__add__(other)

Add two Vec3s.

__radd__(other)

Add two Vec3s.

__sub__(other)

Add two Vec3s.

__rsub__(other)

Add two Vec3s.

__mul__(other)

Multiply a Vec3 by a constant.

__rmul__(other)

Multiply a Vec3 by a constant.

__div__(other)

Divide a Vec3 by a constant.

__truediv__(other)

Divide a Vec3 by a constant.

__contains__

x.__contains__(y) <==> y in x

__delattr__

x.__delattr__(‘name’) <==> del x.name

__eq__

x.__eq__(y) <==> x==y

__format__()

default object formatter

__ge__

x.__ge__(y) <==> x>=y

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__getitem__

x.__getitem__(y) <==> x[y]

__getslice__

x.__getslice__(i, j) <==> x[i:j]

Use of negative indices is not supported.

__gt__

x.__gt__(y) <==> x>y

__hash__
__iter__
__le__

x.__le__(y) <==> x<=y

__len__
__lt__

x.__lt__(y) <==> x<y

__ne__

x.__ne__(y) <==> x!=y

__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__()

T.__sizeof__() – size of T in memory, in bytes

__str__
count(value) → integer -- return number of occurrences of value
index(value[, start[, stop]]) → integer -- return first index of value.

Raises ValueError if the value is not present.