<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://cmm.ozdeadmeat.com/index.php?action=history&amp;feed=atom&amp;title=GetDistanceVec</id>
	<title>GetDistanceVec - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cmm.ozdeadmeat.com/index.php?action=history&amp;feed=atom&amp;title=GetDistanceVec"/>
	<link rel="alternate" type="text/html" href="https://cmm.ozdeadmeat.com/index.php?title=GetDistanceVec&amp;action=history"/>
	<updated>2026-06-04T14:19:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://cmm.ozdeadmeat.com/index.php?title=GetDistanceVec&amp;diff=5962&amp;oldid=prev</id>
		<title>Ozdeadmeat: getDistanceVec – created via PowerShell script (2025-11-11T21:12:33Z)</title>
		<link rel="alternate" type="text/html" href="https://cmm.ozdeadmeat.com/index.php?title=GetDistanceVec&amp;diff=5962&amp;oldid=prev"/>
		<updated>2025-11-11T10:12:35Z</updated>

		<summary type="html">&lt;p&gt;getDistanceVec – created via PowerShell script (2025-11-11T21:12:33Z)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:FunctionInfo|fName=          getDistanceVec|fDescription=   Calculates the 2D distance between two vectors, handling both vec2 and vec3 inputs by extracting x and z or y coordinates appropriately, then uses GetDistance2D to compute the distance in meters.|parentFile=     cmm.positionFunctions.lua|syntax=         CMM.getDistanceVec(vec1 &amp;lt;TBL&amp;gt;, vec2 &amp;lt;TBL&amp;gt;)|return=         number|returnDesc=     Distance in meters between the two points, calculated using 2D Euclidean distance on x and y coordinates.|example=        CMM.getDistanceVec({x=1, y=2, z=3}, {x=4, y=5, z=6})|exampleDesc=    Computes the distance between two 3D points with coordinates (1,2,3) and (4,5,6), returning the 2D distance using x and z as the respective axes.|related=        |note=           --TODO Retire this command as CMM.Distance does the same thing|envType= CMM|par1=         table vec1|reqType1=     table|reqName1=     vec1|desc1=       A vector table representing a point in 3D space, with fields x and optionally z or y; if z exists, it is treated as the y-coordinate for distance calculation.|par2=         table vec2|reqType2=     table|reqName2=     vec2|desc2=       A vector table representing a point in 3D space, with fields x and optionally z or y; if z exists, it is treated as the y-coordinate for distance calculation.}}&lt;/div&gt;</summary>
		<author><name>Ozdeadmeat</name></author>
	</entry>
</feed>