Code: Select all
void Vector_Scale(float vectorOut[3], float vectorIn[3], float scale2) {
int c;
for (c = 0; c < 3; c++) {
vectorOut[c] = vectorIn[c] * scale2;
}
}
EDIT: Found out arrays are automatically by reference :D
Code: Select all
void Vector_Scale(float vectorOut[3], float vectorIn[3], float scale2) {
int c;
for (c = 0; c < 3; c++) {
vectorOut[c] = vectorIn[c] * scale2;
}
}