DOKK / manpages / debian 11 / s3d-doc / s3d_vector_cross_product.3.en
S3D_VECTOR_CROSS_PRO(3) s3d Manual S3D_VECTOR_CROSS_PRO(3)

s3d_vector_cross_product - calculate cross product of two vectors

#include <s3d.h>

void s3d_vector_cross_product(const float vector1[], const float vector2[], float result_vector[]);

Calculates and returns the cross product of vector1 and vector2. All vectors should have the format float[3]. More info on wikipedia. http://en.wikipedia.org/wiki/Vector_(spatial)

Simon Wunderlich

Author of s3d
s3d