Changed Vector.opposite to Vector.reverse

This commit is contained in:
Roger Maitland 2022-11-14 16:52:33 -05:00
parent 78b1bb054d
commit 0bbc5efde6

View file

@ -520,7 +520,7 @@ class Vector:
"""Scale to length of 1"""
return Vector(self.wrapped.Normalized())
def opposite(self) -> Vector:
def reverse(self) -> Vector:
"""Return a vector with the same magnitude but pointing in the opposite direction"""
return self * -1.0