Vec3¶
-
class
simtk.openmm.vec3.
Vec3
¶ Vec3 is a 3-element tuple that supports many math operations.
-
__init__
()¶ Initialize self. See help(type(self)) for accurate signature.
Methods
count
(...)index
((value, [start, ...)Raises ValueError if the value is not present. -
static
__new__
(x, y, z)¶ Create a new Vec3.
-
__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.
-
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.
-