vectorLinearConversion: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dl class="command_description"> <!-- BEGIN Note Section --> <!-- For example: <dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd> <dt class="note">User Name</dt> <dd class="note">This is an example n...) |
Lou Montana (talk | contribs) m (Text replacement - "\|(arg|eff|serverExec|mp|seealso)= " to "") |
||
Line 4: | Line 4: | ||
|1.92 | |1.92 | ||
|gr2= Math - Vectors | |gr2= Math - Vectors | ||
| Interpolates vector between the given "vectorFrom" and "vectorTo" value according to the given range value | | Interpolates vector between the given "vectorFrom" and "vectorTo" value according to the given range value |
Revision as of 21:02, 21 May 2021
Description
- Description:
- Description needed
- Groups:
- Math - Vectors
Syntax
- Syntax:
- Syntax needed
- Parameters:
- [rangeFrom, rangeTo, rangeValue, vectorFrom, vectorTo, clip]: Array
- 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 (Optional): Boolean - if true, range value will be clipped to stay within "from" - "to" range. Default: false
- Return Value:
- Return value needed
Examples
- Example 1:
vectorLinearConversion [0,1,0.5,[0,0,0],[25,50,100],false]; // [12.5,25,50]
- Example 2:
vectorLinearConversion [0,1,100,[0,0,0],[25,50,100],true]; // [25,50,100]
- Example 3:
vectorLinearConversion [0,1,100,[0,0,0],[25,50,100],false]; // [2500,5000,10000]
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