ffur2007slx2_5
Arma 3 v1.22 Algorithm:
Vector1 = [x1,y1,z1];
Vector2 = [x2,y2,z2];
Result = sqrt ((x2 - x1) ^ 2 + (y2 - y1) ^ 2 + (z2 - z1) ^ 2);
Results appear below as you type; use the arrow keys to move through them.
Returns Euclidean distance between two points.
point1 vectorDistance point2
Parameters:
point1: Position3D or Position2D - (since Arma 3 v2.00, z coordinate is defaulted to 0)point2: Position3D or Position2D - (since Arma 3 v2.00, z coordinate is defaulted to 0)Returns: Number
_euclideanDist = getPosASL player vectorDistance [0,0,0];
(getPosASL _a) vectorDistance (getPosASL _b);
// same as
(getPosATL _a) distance (getPosATL _b);
vectorAdd · vectorDiff · vectorCrossProduct · vectorDotProduct · vectorCos · vectorMagnitude · vectorMagnitudeSqr · vectorMultiply · vectorDistanceSqr · vectorDir · vectorUp · setVectorDir · setVectorUp · setVectorDirAndUp · distance · vectorNormalized · vectorFromTo · distance2D · matrixMultiply · matrixTranspose
Arma 3 v1.22 Algorithm:
Vector1 = [x1,y1,z1];
Vector2 = [x2,y2,z2];
Result = sqrt ((x2 - x1) ^ 2 + (y2 - y1) ^ 2 + (z2 - z1) ^ 2);