AddVectors Function

Adds two vectors. It is safe to use either input buffer as an output buffer.

void AddVectors(const float vec1[3], const float vec2[3], float result[3])

Parameters

const float[3] vec1

First vector.

const float[3] vec2

Second vector.

float[3] result

Result buffer.