diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-08-10 00:07:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 00:07:32 +0200 |
commit | 317ced8204d80367c445963fc989de320c6f9a68 (patch) | |
tree | de40ce8699870306e155263255e3997a979268eb /doc/classes | |
parent | 9da08cecbde2c7ec7522f793e934f7dfd9dc35ff (diff) | |
parent | 40a1d6d100d8a1823d3a939a7ad7350b36bcddbd (diff) |
Merge pull request #64108 from antonWetzel/csharp-update
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Vector4.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/Vector4.xml b/doc/classes/Vector4.xml index 97c8f04be7..46005f8373 100644 --- a/doc/classes/Vector4.xml +++ b/doc/classes/Vector4.xml @@ -80,6 +80,14 @@ Returns the normalized vector pointing from this vector to [param to]. 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" /> |