UShader Engine Wikia
Register
Advertisement
Subtract2

Name[]

a - b - returns vector c, which is a result of subtracting vector a & vector b

Synopsis[]

vector1 subtract(vector1 a, vector1 b);
vector2 subtract(vector2 a, vector1 b);
vector3 subtract(vector3 a, vector1 b);
vector4 subtract(vector4 a, vector1 b);

Parameters[]

a
A value.
b
A value.
c
The returning value of subtraction.

Description[]

Returns c = a - b.

For vectors, the returned vector c contains difference of each element of the vector a (vector1-vector4) and the respective element of the vector b (only vector1).

Advertisement