summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2020-12-07 01:40:46 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-06-17 23:57:00 -0400
commit93b494d4ae136f43193a5a2da7a355938517767e (patch)
treed7b506d53e41f0328f410f15a1587b061fe82d98 /doc/classes
parent8ffb631cdb740540ae74edaa5cef8a04d263ccee (diff)
Add Quaternion angle_to method
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Quaternion.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/classes/Quaternion.xml b/doc/classes/Quaternion.xml
index 678fb0d44d..eafd929399 100644
--- a/doc/classes/Quaternion.xml
+++ b/doc/classes/Quaternion.xml
@@ -83,6 +83,16 @@
Constructs a quaternion defined by the given values.
</description>
</method>
+ <method name="angle_to" qualifiers="const">
+ <return type="float">
+ </return>
+ <argument index="0" name="to" type="Quaternion">
+ </argument>
+ <description>
+ Returns the angle between this quaternion and [code]to[/code]. This is the magnitude of the angle you would need to rotate by to get from one to the other.
+ [b]Note:[/b] This method has an abnormally high amount of floating-point error, so methods such as [code]is_zero_approx[/code] will not work reliably.
+ </description>
+ </method>
<method name="cubic_slerp" qualifiers="const">
<return type="Quaternion">
</return>