diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-16 11:57:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 11:57:40 +0100 |
commit | 997a9f37f7fe74957732d3244a4a4eb85297eea3 (patch) | |
tree | ac7126f5e666dfb999854f3b76f12ddca7f4ed33 /doc | |
parent | 5dea8b662eddf1a7f853ea40d1546edc88686f15 (diff) | |
parent | 2c71ff111901356b5301dd9571739525b8565be7 (diff) |
Merge pull request #45807 from JestemStefan/signed_angles
Add signed_angle_to() and related methods to Vector3 and Vector3i
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Vector3.xml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml index 2d129a2c86..ea80b7c248 100644 --- a/doc/classes/Vector3.xml +++ b/doc/classes/Vector3.xml @@ -68,7 +68,7 @@ <argument index="0" name="to" type="Vector3"> </argument> <description> - Returns the minimum angle to the given vector, in radians. + Returns the unsigned minimum angle to the given vector, in radians. </description> </method> <method name="bounce"> @@ -465,6 +465,17 @@ Returns a vector with each component set to one or negative one, depending on the signs of this vector's components, or zero if the component is zero, by calling [method @GlobalScope.sign] on each component. </description> </method> + <method name="signed_angle_to"> + <return type="float"> + </return> + <argument index="0" name="to" type="Vector3"> + </argument> + <argument index="1" name="axis" type="Vector3"> + </argument> + <description> + Returns the signed angle to the given vector, in radians. The sign of the angle is positive in a counter-clockwise direction and negative in a clockwise direction when viewed from the side specified by the [code]axis[/code]. + </description> + </method> <method name="slerp"> <return type="Vector3"> </return> |