BIS fnc isEqualVector: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *cc*\| *([^}]+) *\}\}" to "// $1") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 10: | Line 10: | ||
|s1= [vector1, vector2, tolerance] call [[BIS_fnc_isEqualVector]] | |s1= [vector1, vector2, tolerance] call [[BIS_fnc_isEqualVector]] | ||
|p1= vector1: [[Array]] - | |p1= vector1: [[Array]] - vector 1 | ||
|p2= vector2: [[Array]] - | |p2= vector2: [[Array]] - vector 2 | ||
|p3= tolerance: [[Number]] - The tolerance | |p3= tolerance: [[Number]] - The tolerance | ||
|r1= [[Boolean]] - | |r1= [[Boolean]] - returns [[true]] if in tolerance, otherwise [[false]] | ||
|x1= < | |x1= <sqf>[[1,1,1], [2,2,2], 1] call BIS_fnc_isEqualVector; // returns true</sqf> | ||
|seealso= [[isEqualTo]] [[isEqualTypeAny]] | |seealso= [[isEqualTo]] [[isEqualTypeAny]] | ||
}} | }} |
Revision as of 16:26, 13 July 2022
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:
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