BIS fnc isEqualVector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (filled page)
Line 1: Line 1:
{{Function|= Comments
{{Function


| arma3 |Game name=
|game1= arma3


|1.00|Game version=
|version1= 1.00


<!---|arg= local |Multiplayer Arguments=--->
<!--|exec= server|=-->


<!---|eff= local |Multiplayer Effects=--->
<!--|arg= local-->


| <pre>/*
<!--|eff= local-->
Author: Nelson Duarte <@Nelson_G_Duarte>


Description:
|descr= Checks whether two vectors are equal with given tolerance.
Whether two vectors are equal with given tolerance


Parameter(s):
|s1= [vector1, vector2, tolerance] call [[BIS_fnc_isEqualVector]]
_this select 0: Array - The first vector
_this select 1: Array - The second vector
_this select 2: Number - The tolerance


Returns:
|p1= vector1: [[Array]] - Vector 1
bool - True if equal, false if not
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_isEqualVector]]|Syntax=
|p2= vector2: [[Array]] - Vector 2


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|p3= tolerance: [[Number]] - The tolerance


|Datatype - description|Return value=
|r1= [[Nothing]]


|x1= <code></code>|Example 1=
|x1= <code><nowiki>[</nowiki>[1,1,1],[2,2,2],1] [[call]] [[BIS_fnc_isEqualVector]];{{cc|Returns [[true]]}}</code>
 
|exec= call
 
|seealso= [[isEqualTo]] [[isEqualTypeAny]]


| |See also=
}}
}}



Revision as of 17:58, 10 January 2020

Hover & click on the images for description

Description

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

Syntax

Syntax:
[vector1, vector2, tolerance] call BIS_fnc_isEqualVector
Parameters:
vector1: Array - Vector 1
vector2: Array - Vector 2
tolerance: Number - The tolerance
Return Value:
Nothing

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