BIS fnc isEqualVector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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...)
m (Text replacement - " {2,}\}\}" to " }}")
Line 24: Line 24:


|seealso= [[isEqualTo]] [[isEqualTypeAny]]
|seealso= [[isEqualTo]] [[isEqualTypeAny]]
}}
}}


[[Category:Functions|{{uc:isEqualVector}}]]
[[Category:Functions|{{uc:isEqualVector}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:isEqualVector}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:isEqualVector}}]]

Revision as of 23:47, 18 January 2021

Hover & click on the images for description

Description

Description:
Checks whether two vectors are equal with given tolerance.
Execution:
call
Groups:
Vectors

Syntax

Syntax:
[vector1, vector2, tolerance] call BIS_fnc_isEqualVector
Parameters:
vector1: Array - Vector 1
vector2: Array - Vector 2
tolerance: Number - The tolerance
Return Value:
Boolean - Returns true if in tolerance, otherwise false

Examples

Example 1:
[[1,1,1],[2,2,2],1] call BIS_fnc_isEqualVector;// Returns true

Additional Information

See also:
isEqualTo isEqualTypeAny

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