BIS fnc isEqualVector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 1.00
|version1= 1.00


Line 11: Line 10:
|s1= [vector1, vector2, tolerance] call [[BIS_fnc_isEqualVector]]
|s1= [vector1, vector2, tolerance] call [[BIS_fnc_isEqualVector]]


|p1= vector1: [[Array]] - Vector 1
|p1= vector1: [[Array]] - vector 1
 
|p2= vector2: [[Array]] - Vector 2


|p3= tolerance: [[Number]] - The tolerance
|p2= vector2: [[Array]] - vector 2


|r1= [[Boolean]] - Returns [[true]] if in tolerance, otherwise [[false]]
|p3= tolerance: [[Number]] - the tolerance


|x1= <code><nowiki>[</nowiki>[1,1,1],[2,2,2],1] [[call]] [[BIS_fnc_isEqualVector]];{{cc|Returns [[true]]}}</code>
|r1= [[Boolean]] - returns [[true]] if in tolerance, otherwise [[false]]


|exec= call
|x1= <sqf>[[1,1,1], [2,2,2], 1] call BIS_fnc_isEqualVector; // returns true</sqf>


|seealso= [[isEqualTo]] [[isEqualTypeAny]]
|seealso= [[isEqualTo]] [[isEqualTypeAny]]
}}
}}
[[Category:{{Name|arma3}}: Functions|{{uc:isEqualVector}}]]

Latest revision as of 16:51, 8 November 2023

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