xs_vec_sub_scaled
- Синтаксис
-
stock xs_vec_sub_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; }
Переменная | Описание |
---|---|
in1 |
Vector to subtract from. |
in2 |
Vector to scale and subtract. |
scalar |
Scalar to scale the second vector with. |
out |
The output vector. Can be one of the input vectors. |
- Описание
- Subtracts the second vector scaled by a scalar from the first one.
- Возвращает
- Функция ничего не возвращает