Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
|
Functions related to 3D vector operations. More...
Functions | |
vec_3d | vector_sub (const vec_3d *a, const vec_3d *b) |
Subtract one vector from another. More... | |
vec_3d | vector_add (const vec_3d *a, const vec_3d *b) |
Add one vector to another. More... | |
float | dot_prod (const vec_3d *a, const vec_3d *b) |
Obtain the dot product of two 3D vectors. More... | |
vec_3d | vector_prod (const vec_3d *a, const vec_3d *b) |
Compute the vector product of two 3d vectors. More... | |
const char * | print_vector (const vec_3d *a, const char *name) |
Print formatted vector on stdout. More... | |
float | vector_norm (const vec_3d *a) |
Compute the norm a vector. More... | |
vec_3d | unit_vec (const vec_3d *a) |
Obtain unit vector in the same direction as given vector. More... | |
mat_3x3 | get_cross_matrix (const vec_3d *a) |
The cross product of vectors can be represented as a matrix multiplication operation. More... | |
double | get_angle (const vec_3d *a, const vec_3d *b) |
Obtain the angle between two given vectors. More... | |
static void | test () |
Testing function. More... | |
int | main (void) |
Main function. More... | |
Functions related to 3D vector operations.
int main | ( | void | ) |
|
static |
Testing function.
void