BIS fnc slerp: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Function|= Comments | arma3 |Game name= |1.78|Game version= <!---|arg= local |Multiplayer Arguments=---> <!---|eff= local |Multiplayer Effects=---> | <pre>/* Author:...")
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.78


|1.78|Game version=
|gr1= Interpolation


<!---|arg= local |Multiplayer Arguments=--->
|descr= Spherical lerp, for correct lerping of normalized direction vectors


<!---|eff= local |Multiplayer Effects=--->
|s1= [currentValue, targetValue, alpha] call [[BIS_fnc_slerp]]


| <pre>/*
|p1= currentValue: [[Array]] - the current value
Author:
Nelson Duarte


Description:
|p2= targetValue: [[Array]] - the target value
Spherical lerp, for correct lerping of normalized direction vectors


Parameters:
|p3= alpha: [[Number]] - the alpha
_this: ARRAY
0: SCALAR - The current value
1: SCALAR - The target value
2: SCALAR - The alpha


Returns:
|r1= [[Array]] - interpolated value
SCALAR
*/</pre>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |Description=


|[] call [[BIS_fnc_slerp]]|Syntax=
|x1=


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|seealso= [[BIS_fnc_clerp]] [[BIS_fnc_lerp]] [[BIS_fnc_lerpVector]] [[BIS_fnc_inverseLerp]]
 
|Datatype - description|Return value=
 
|x1= <code></code>|Example 1=
 
|exec= call |Execution=
 
| |See also=
}}
}}
[[Category:Function Group: Interp|{{uc:slerp}}]]
[[Category:Functions|{{uc:slerp}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:slerp}}]]

Latest revision as of 15:50, 8 November 2023

Hover & click on the images for description

Description

Description:
Spherical lerp, for correct lerping of normalized direction vectors
Execution:
call
Groups:
Interpolation

Syntax

Syntax:
[currentValue, targetValue, alpha] call BIS_fnc_slerp
Parameters:
currentValue: Array - the current value
targetValue: Array - the target value
alpha: Number - the alpha
Return Value:
Array - interpolated value

Examples

Examples:
Example needed

Additional Information

See also:
BIS_fnc_clerp BIS_fnc_lerp BIS_fnc_lerpVector BIS_fnc_inverseLerp

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