<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Vector3%3A%3Alength</id>
	<title>Vector3::length - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Vector3%3A%3Alength"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vector3::length&amp;action=history"/>
	<updated>2026-06-04T04:44:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vector3::length&amp;diff=17688&amp;oldid=prev</id>
		<title>Micaww: Created page with &quot;This function returns the magnitude of a Vector3.  It&#039;s calculated by square rooting the result of &#039;&#039;&#039;x * x + y * y + z * z&#039;&#039;&#039;.  ==Syntax== &lt;pre&gt; vector.length(); &lt;/pre&gt;   ==...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vector3::length&amp;diff=17688&amp;oldid=prev"/>
		<updated>2019-05-31T05:58:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This function returns the magnitude of a Vector3.  It&amp;#039;s calculated by square rooting the result of &amp;#039;&amp;#039;&amp;#039;x * x + y * y + z * z&amp;#039;&amp;#039;&amp;#039;.  ==Syntax== &amp;lt;pre&amp;gt; vector.length(); &amp;lt;/pre&amp;gt;   ==...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This function returns the magnitude of a Vector3.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s calculated by square rooting the result of &amp;#039;&amp;#039;&amp;#039;x * x + y * y + z * z&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vector.length();&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
* {{RageType|number}} The vector&amp;#039;s magnitude.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example calculates the distance between two players.&lt;br /&gt;
{{ServersideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
const vec1 = mp.players.at(0).position;&lt;br /&gt;
const vec2 = mp.players.at(1).position;&lt;br /&gt;
&lt;br /&gt;
const distance = vec1.subtract(vec2).length();&lt;br /&gt;
&lt;br /&gt;
// distance is the distance between the two players&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vector3_definition}}&lt;/div&gt;</summary>
		<author><name>Micaww</name></author>
	</entry>
</feed>