AMX Mod X API Documentation

Signature
stock xs_vec_div_scalar(const Float:vec[], Float:scalar, Float:out[]){ new Float:__tmp = 1.0 / scalar; out[0] = vec[0] * __tmp; out[1] = vec[1] * __tmp; out[2] = vec[2] * __tmp;}
Description

Divide a vector by a scalar value.

Parameters
  • vec The vector to be divided.
  • scalar The scalar value to divide the vector with.
  • out The output vector. Can be the same as the input vector.
No return value
Назад
Верх