table of contents
S3D_VECTOR_SUBTRACT(3) | s3d Manual | S3D_VECTOR_SUBTRACT(3) |
NAME¶
s3d_vector_subtract - subtract two vectors
SYNOPSIS¶
#include <s3d.h>
void s3d_vector_subtract(const float vector1[], const float vector2[], float result_vector[]);
DESCRIPTION¶
Subtracts vector1 from vector2, writing result into result_vector. All vectors should have the format float[3]. More info on wikipedia. http://en.wikipedia.org/wiki/Vector_(spatial)
AUTHOR¶
Simon Wunderlich
Author of s3d
s3d |