Difference between revisions of "GetDistanceBetwTwoVectors"
From scripting
(Created page with " global proc float GetDistanceBetwTwoVectors(vector $V1, vector $V2) { //Author Nick Pisca 0001d 2010 //vector $V1 = <<0,22,1>>; vector $V2 = <<22,0,0>>; vector $DDiff =...") |
(No difference)
|
Latest revision as of 05:56, 22 April 2017
global proc float GetDistanceBetwTwoVectors(vector $V1, vector $V2) { //Author Nick Pisca 0001d 2010 //vector $V1 = <<0,22,1>>; vector $V2 = <<22,0,0>>; vector $DDiff = $V1-$V2; float $FF=mag($DDiff); return $FF; }
Related Functions: GetDistanceBetwTwoArrays ReturnNVectorCOG
More information on vectors and vector mathematics, read pages 14-16, 20-21 in YSYT.