From 40a1d6d100d8a1823d3a939a7ad7350b36bcddbd Mon Sep 17 00:00:00 2001 From: antonWetzel Date: Mon, 8 Aug 2022 17:05:55 +0200 Subject: vector4 distance_squared_to and update csharp --- doc/classes/Vector4.xml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/classes') 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]. + + + + + 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. + + -- cgit v1.2.3