summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorantonWetzel <anton.wetzel.mail@gmail.com>2022-08-08 17:05:55 +0200
committerantonWetzel <anton.wetzel.mail@gmail.com>2022-08-09 01:59:17 +0200
commit40a1d6d100d8a1823d3a939a7ad7350b36bcddbd (patch)
tree65b06f486f70150e7110b1ad1dde3aa2f398c858 /doc/classes
parent7355dfb502dbae6f13fbe42a9feeadb57affac0e (diff)
vector4 distance_squared_to and update csharp
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Vector4.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/Vector4.xml b/doc/classes/Vector4.xml
index b5658f074a..a93689c619 100644
--- a/doc/classes/Vector4.xml
+++ b/doc/classes/Vector4.xml
@@ -80,6 +80,14 @@
Returns the normalized vector pointing from this vector to [code]to[/code]. This is equivalent to using [code](b - a).normalized()[/code].
</description>
</method>
+ <method name="distance_squared_to" qualifiers="const">
+ <return type="float" />
+ <param index="0" name="to" type="Vector4" />
+ <description>
+ Returns the squared distance between this vector and [code]to[/code].
+ This method runs faster than [method distance_to], so prefer it if you need to compare vectors or need the squared distance for some formula.
+ </description>
+ </method>
<method name="distance_to" qualifiers="const">
<return type="float" />
<param index="0" name="to" type="Vector4" />