vectorLinearConversion: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
BrettMayson (talk | contribs) mNo edit summary |
||
Line 20: | Line 20: | ||
|p5= vectorTo: [[Array]] - end "to" vector | |p5= vectorTo: [[Array]] - end "to" vector | ||
|p6= clip: [[Boolean]] - (Optional, default [[false]] if [[true]], range value will be clipped to stay within "from" - "to" range | |p6= clip: [[Boolean]] - (Optional, default [[false]]) if [[true]], range value will be clipped to stay within "from" - "to" range | ||
|r1= [[Array]] - interpolated vector | |r1= [[Array]] - interpolated vector |
Latest revision as of 21:21, 28 September 2023
Description
- Description:
- Interpolates vector between the given vectorFrom and vectorTo value according to the given range value.
- Groups:
- Math - Vectors
Syntax
- Syntax:
- vectorLinearConversion [rangeFrom, rangeTo, rangeValue, vectorFrom, vectorTo, clip]
- Parameters:
- rangeFrom: Number - start "from" range
- rangeTo: Number - end "to" range
- rangeValue: Number - variable range value
- vectorFrom: Array - start "from" vector
- vectorTo: Array - end "to" vector
- clip: Boolean - (Optional, default false) if true, range value will be clipped to stay within "from" - "to" range
- Return Value:
- Array - interpolated vector
Examples
- Example 1:
- Example 2:
- Example 3:
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