{"name":"vectorLinearConversion","title":"vectorLinearConversion","type":"command","url":"https://community.bistudio.com/wiki/vectorLinearConversion","revid":377894,"updated":"2026-01-05T17:41:49Z","groups":["Math - Vectors"],"status":"ok","games":{"arma3":"1.92"},"since":"arma3 1.92","arma3_since":"1.92","description":"Interpolates vector between the given *vectorFrom* and *vectorTo* value according to the given range value.","syntaxes":[{"syntax":"vectorLinearConversion [rangeFrom, rangeTo, rangeValue, vectorFrom, vectorTo, clip]","params":[{"name":"rangeFrom","type":"Number","description":"start \"from\" range","type_expr":"Number"},{"name":"rangeTo","type":"Number","description":"end \"to\" range","type_expr":"Number"},{"name":"rangeValue","type":"Number","description":"variable range value","type_expr":"Number"},{"name":"vectorFrom","type":"Vector3D","description":"start \"from\" vector","type_expr":"Vector3D"},{"name":"vectorTo","type":"Vector3D","description":"end \"to\" vector","type_expr":"Vector3D"},{"name":"clip","type":"Boolean","optional":true,"default":"false","description":"if true, range value will be clipped to stay within \"from\" - \"to\" range","type_expr":"Boolean","text":"clip: Boolean - (Optional, default false) if true, range value will be clipped to stay within \"from\" - \"to\" range"}],"returns":{"type":"Vector3D","type_expr":"Vector3D","description":"interpolated vector"},"form":"unary","right":{"text":"[rangeFrom, rangeTo, rangeValue, vectorFrom, vectorTo, clip]"}}],"examples":[{"text":"```sqf\nvectorLinearConversion [0, 1, 0.5, [0,0,0], [25,50,100], false];    // [12.5,25,50]\n```","code":["vectorLinearConversion [0, 1, 0.5, [0,0,0], [25,50,100], false];\t// [12.5,25,50]"]},{"text":"```sqf\nvectorLinearConversion [0, 1, 100, [0,0,0], [25,50,100], true];    // [25,50,100]\n```","code":["vectorLinearConversion [0, 1, 100, [0,0,0], [25,50,100], true];\t// [25,50,100]"]},{"text":"```sqf\nvectorLinearConversion [0, 1, 100, [0,0,0], [25,50,100], false];    // [2500,5000,10000]\n```","code":["vectorLinearConversion [0, 1, 100, [0,0,0], [25,50,100], false];\t// [2500,5000,10000]"]}],"see_also":["linearConversion","bezierInterpolation","matrixMultiply","matrixTranspose"]}