Voxvision
1
Creating and manipulating voxel octrees
|
Basic geometry functions. More...
#include "params.h"
Go to the source code of this file.
Macros | |
#define | vox_dot_add(a, b, res) |
Vector addition. More... | |
#define | vox_dot_sub(a, b, res) |
Vector subtraction. More... | |
#define | vox_dot_scmul(d, sc, res) |
Vector multiplication by a scalar. More... | |
Functions | |
VOX_EXPORT float | vox_abs_metric (const vox_dot dot1, const vox_dot dot2) |
Calculate fast metric between two dots. More... | |
VOX_EXPORT float | vox_sqr_metric (const vox_dot dot1, const vox_dot dot2) |
Calculate metric between two dots. More... | |
VOX_EXPORT float | vox_sqr_norm (const vox_dot dot) |
Calculate norm of a vector. More... | |
Basic geometry functions.
#define vox_dot_add | ( | a, | |
b, | |||
res | |||
) |
Vector addition.
#define vox_dot_scmul | ( | d, | |
sc, | |||
res | |||
) |
Vector multiplication by a scalar.
#define vox_dot_sub | ( | a, | |
b, | |||
res | |||
) |
Vector subtraction.
VOX_EXPORT float vox_abs_metric | ( | const vox_dot | dot1, |
const vox_dot | dot2 | ||
) |
Calculate fast metric between two dots.
This is a fast metric on R^3 calculacted as sum of absolute values of by-coordinate differences between two dots.
VOX_EXPORT float vox_sqr_metric | ( | const vox_dot | dot1, |
const vox_dot | dot2 | ||
) |
Calculate metric between two dots.
This is a square of standard Euclidian metric on R^3
VOX_EXPORT float vox_sqr_norm | ( | const vox_dot | dot | ) |
Calculate norm of a vector.
This is a square of standard Euclidian norm on R^3