BIS fnc distance2Dsqr: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
|gr1= Geometry | |gr1= Geometry | ||
|descr= | |descr= Returns the SQUARE of the distance between the two objects or positions "as the crow flies" (ignoring elevation). | ||
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]]}} | {{Feature|arma3|This function became obsolete with the introduction of [[distanceSqr]].}} | ||
|s1= [ | |s1= [pointA, pointB] call [[BIS_fnc_distance2Dsqr]] | ||
|p1= | |p1= pointA: [[Object]] or [[Position]] | ||
| | |p2= pointB: [[Object]] or [[Position]] | ||
| | |r1= [[Number]] - squared distance | ||
|x2= < | |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]] | |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