From 1a620bd5faebd83015182ea032f40936a9916af6 Mon Sep 17 00:00:00 2001
From: Ferenc Arn
Date: Fri, 31 Mar 2017 10:25:09 -0500
Subject: Made slide and reflect active verbs acting on itself in Vector2 and
Vector3.
This is in alignment with other functions in vector classes.
Also added checks for normalization, fixed the sign of reflect (which now corresponds to reflection along a plane mathematically), added bounce method and updated docs.
Fixes #8201.
---
doc/base/classes.xml | 34 ++++++++++++++++++++++++++--------
1 file changed, 26 insertions(+), 8 deletions(-)
(limited to 'doc/base/classes.xml')
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index f3d73deaf..7e4d53629 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -46992,6 +46992,15 @@ do_property].
Returns the ratio of X to Y.
+
+
+
+
+
+
+ Bounce returns the vector "bounced off" from the given plane, specified by its normal vector.
+
+
@@ -47084,10 +47093,10 @@ do_property].
-
+
- Like "slide", but reflects the Vector instead of continuing along the wall.
+ Reflects the vector along the given plane, specified by its normal vector.
@@ -47102,10 +47111,10 @@ do_property].
-
+
- Slides the vector by the other vector.
+ Slide returns the component of the vector along the given plane, specified by its normal vector.
@@ -47178,6 +47187,15 @@ do_property].
+
+
+
+
+
+
+ Bounce returns the vector "bounced off" from the given plane, specified by its normal vector.
+
+
@@ -47308,10 +47326,10 @@ do_property].
-
+
- Like "slide", but reflects the Vector instead of continuing along the wall.
+ Reflects the vector along the given plane, specified by its normal vector.
@@ -47328,10 +47346,10 @@ do_property].
-
+
- Slides the vector along a wall.
+ Slide returns the component of the vector along the given plane, specified by its normal vector.
--
cgit v1.3.1