Vector.invert

Vector.invert()[source]

Invert the direction of this vector

Returns

None

Notes

a negation of a vector is similar to inverting a vector

Examples

>>> u = Vector(1.0, 0.0, 0.0)
>>> v = u.copy()
>>> u.invert()
>>> u == v
False
>>> u.invert()
>>> u == v
True
>>> v == --v
True