vectorDistance: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "\{\{Wikipedia *\| *([a-zA-Z0-9_#]+) *\| *([a-zA-Z0-9_ #]+) *\}\}" to "{{Link|https://en.wikipedia.org/$1|$2}}") |
||
Line 6: | Line 6: | ||
|gr2= Math - Vectors | |gr2= Math - Vectors | ||
|descr= Returns {{ | |descr= Returns {{Link|https://en.wikipedia.org/Euclidean_distance|Euclidean distance}} between two points. | ||
|s1= point1 [[vectorDistance]] point2 | |s1= point1 [[vectorDistance]] point2 |
Revision as of 22:02, 23 February 2023
Description
- Description:
- Returns Euclidean distance between two points.
- Groups:
- Math - Vectors
Syntax
- Syntax:
- point1 vectorDistance point2
- Parameters:
- point1: Position3D or Position2D - (since 2.00, z coordinate is defaulted to 0)
- point2: Position3D or Position2D - (since 2.00, z coordinate is defaulted to 0)
- Return Value:
- Number
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- vectorAdd vectorDiff vectorCrossProduct vectorDotProduct vectorCos vectorMagnitude vectorMagnitudeSqr vectorMultiply vectorDistanceSqr vectorDir vectorUp setVectorDir setVectorUp setVectorDirAndUp distance vectorNormalized vectorFromTo distance2D matrixMultiply matrixTranspose
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on 28 Jun, 2014
- ffur2007slx2_5
- 1.22 Algorithm: