Fix flipped right/left normal vector functions
This commit is contained in:
parent
72860a3e6b
commit
e6ff706419
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user