BIS fnc lerpVector: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *I([a-z ])" to "$1 - i$2") |
||
Line 16: | Line 16: | ||
|p3= alpha: [[Number]] - alpha | |p3= alpha: [[Number]] - alpha | ||
|r1= [[Array]] - | |r1= [[Array]] - interpolated vector | ||
|x1= <sqf>[[1592.74,6558.36,0], [2240.43,7459.69,0], 0.3] call BIS_fnc_lerpVector; // returns [1787.05,6828.76,0]</sqf> | |x1= <sqf>[[1592.74,6558.36,0], [2240.43,7459.69,0], 0.3] call BIS_fnc_lerpVector; // returns [1787.05,6828.76,0]</sqf> |
Latest revision as of 15:33, 8 November 2023
Description
- Description:
- Given two different vectors A and B, think of a straight line drawn between them, alpha saying how far along that line is the wanted vector.
- Execution:
- call
- Groups:
- Vectors
Syntax
- Syntax:
- [currentValue, targetValue, alpha] call BIS_fnc_lerpVector
- Parameters:
- currentValue: Array - vector start
- targetValue: Array - vector end
- alpha: Number - alpha
- Return Value:
- Array - interpolated vector
Examples
- Example 1:
- [[1592.74,6558.36,0], [2240.43,7459.69,0], 0.3] call BIS_fnc_lerpVector; // returns [1787.05,6828.76,0]
Additional Information
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