mirror of
https://github.com/gumyr/build123d.git
synced 2026-04-27 15:21:17 -07:00
Changed Vector.opposite to Vector.reverse
This commit is contained in:
parent
78b1bb054d
commit
0bbc5efde6
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue