Garry's Mod Wiki

Revision Difference

Vector:Length#517977

<function name="Length" parent="Vector" type="classfunc"> <description>Returns the Euclidean length of the vector: &amp;radic;&amp;lt;span style="text-decoration:overline;"&amp;gt;&amp;nbsp;x&amp;sup2; + y&amp;sup2; + z&amp;sup2;&amp;nbsp;&amp;lt;/span&amp;gt;</description> <description>Returns the Euclidean length of the vector: &radic;&lt;span style="text-decoration:overline;"&gt;&nbsp;x&sup2; + y&sup2; + z&sup2;&nbsp;&lt;/span&gt;</description> <realm>Shared</realm> <rets> <ret name="" type="number">Length of the vector.</ret> </rets> </function> <example> <description>Gets the length of the vector.</description> <code>print(Vector(15, 16, 17):Length())</code> <output>27.748874664307.</output> </example>