BIS fnc distance2Dsqr: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
|gr1= Geometry | |||
|descr= Returns the SQUARE of the distance between the two objects or positions "as the crow flies" (ignoring elevation). | |||
{{Feature|arma3|This function became obsolete with the introduction of [[distanceSqr]].}} | |||
|[ | |s1= [pointA, pointB] call [[BIS_fnc_distance2Dsqr]] | ||
|p1= | |p1= pointA: [[Object]] or [[Position]] | ||
|[[ | |p2= pointB: [[Object]] or [[Position]] | ||
| | |r1= [[Number]] - squared distance | ||
| | |x1= <sqf>[player, soldier_1] call BIS_fnc_distance2Dsqr;</sqf> | ||
|[[ | |x2= <sqf>[[100,100,0], [0,0,0]] call BIS_fnc_distance2Dsqr;</sqf> | ||
|seealso= [[BIS_fnc_distance2D]] [[distance2D]] [[distance]] | |||
}} | }} | ||
Latest revision as of 09:53, 8 November 2023
Description
- Description:
- Returns the SQUARE of the distance between the two objects or positions "as the crow flies" (ignoring elevation).
- Execution:
- call
- Groups:
- Geometry
Syntax
- Syntax:
- [pointA, pointB] call BIS_fnc_distance2Dsqr
- Parameters:
- pointA: Object or Position
- pointB: Object or Position
- Return Value:
- Number - squared distance
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- BIS_fnc_distance2D distance2D distance
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