BIS fnc relScaledDist: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling)
Line 1: Line 1:
 
{{Function|Comments=
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Original description: <pre>Exponentially inflated rational number between 0 and 1, with 1 being center and 0 being edge of the trigger</pre>
File: fn_relScaledDist.sqf
{{Stub}}|Description=
 
____________________________________________________________________________________________
Description:
Returns
 
Parameter(s):
_this select 0: Trigger
_this select 1: Object


Returns:
| [referenceObject, relativeObject] call [[BIS_fnc_relScaledDist]] |Syntax=
- exponentially inflated rational number between 0 and 1, with 1 being center and 0 being edge of the trigger
Todo:
- Object or Position
- BOOL flag for no exp scale
- Finish rectangle implementation
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_relScaledDist]]; --> |= Syntax
|p1= referenceObject: [[Object]] |Parameter 1=


|p1= |= Parameter 1
|p2= relativeObject: [[Object]] |Parameter 2=


| |= Return value
| [[Number]] |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>[myTrigger, [[player]] [[call]] [[BIS_fnc_relScaledDist]];</code> |Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[distance]], [[distanceSqr]] |See also=
 
}}
}}


Line 51: Line 34:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:relScaledDist}}]]
[[Category:Function Group: Geometry|{{uc:relScaledDist}}]]
[[Category:Function Group: Geometry|{{uc:relScaledDist}}]]
[[Category:Functions|{{uc:relScaledDist}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:relScaledDist}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:relScaledDist}}]]

Revision as of 18:02, 6 June 2018

Hover & click on the images for description

Description

Description:
Original description:
Exponentially inflated rational number between 0 and 1, with 1 being center and 0 being edge of the trigger
Template:Stub
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[referenceObject, relativeObject] call BIS_fnc_relScaledDist
Parameters:
referenceObject: Object
relativeObject: Object
Return Value:
Number

Examples

Example 1:
[myTrigger, player call BIS_fnc_relScaledDist;

Additional Information

See also:
distancedistanceSqr

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

Notes

Bottom Section