AMX Mod X API Documentation

Signature
stock xs_vec_add_scaled(const Float:in1[], const Float:in2[], Float:scalar, Float:out[]){ out[0] = in1[0] + in2[0] * scalar; out[1] = in1[1] + in2[1] * scalar; out[2] = in1[2] + in2[2] * scalar;}
Description

Adds the second vector scaled by a scalar to the first.

Parameters
  • in1 Vector to add to.
  • in2 Vector to scale and add.
  • scalar Scalar to scale the second vector with.
  • out The output vector. Can be one of the input vectors.
No return value
Назад
Верх