Returns a vector containing the result of subtracting each element of b from the corresponding element of a.
d=vec_sub(a, b)
The following table describes the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector4double | vector4double | vector4double |
The value of each element of the result is the result of subtracting the value of the corresponding element of b from the value of the corresponding element of a.
d[0] = a[0] - b[0]
d[1] = a[1] - b[1]
d[2] = a[2] - b[2]
d[3] = a[3] - b[3]
a = (50.0, 60.0, 70.0, 80.0)
b = (10.0, 20.0, 30.0, 40.0)
d: (40.0, 40.0, 40.0, 40.0)