Fix flipped right/left normal vector functions

This commit is contained in:
Matt Low 2020-11-16 13:05:13 +04:00
parent 72860a3e6b
commit e6ff706419

View File

@ -20,12 +20,12 @@ def normalize(x, y):
def lnormal(x, y): def lnormal(x, y):
"""Returns the left-hand normal of a vector.""" """Returns the left-hand normal of a vector."""
return -y, x return y, -x
def rnormal(x, y): def rnormal(x, y):
"""Returns the right-hand normal of a vector.""" """Returns the right-hand normal of a vector."""
return y, -x return -y, x
def reverse(x, y): def reverse(x, y):