1
0
Fork 0

Fix error in Vector2.reflect() description

The description was probably copied from Vector3.reflect(), and
unfortunately did not match the 2D behaviour (where n is apparently the
direction vector of the symmetry line, not the normal).

(cherry picked from commit e1bf428cdc)
This commit is contained in:
Lertsenem 2021-09-24 18:36:38 +02:00 committed by Rémi Verschelde
parent 0868f6af62
commit e807d2e6f0
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@
<return type="Vector2" />
<argument index="0" name="n" type="Vector2" />
<description>
Returns the vector reflected from a plane defined by the given normal.
Returns the vector reflected (i.e. mirrored, or symmetric) over a line defined by the given direction vector [code]n[/code].
</description>
</method>
<method name="rotated">