|
MeshKit
1.0
|
A class of vector utilities. More...
#include <meshkit/VecUtil.hpp>
Static Public Member Functions | |
| static double | dot (double *a, double *b) |
| Dot product. | |
| static double | length_sq (double *a) |
| Length squared of a vector. | |
| static double | dist2 (double *a, double *b) |
| Distance between two vectors. | |
| static void | normalize (double *a) |
| Normalize a vector. | |
| static void | cross (double *a, double *b, double *c) |
| Cross product. | |
Static Public Attributes | |
| static double | PI = acos(-1.0) |
| Constant PI. | |
| static double | TWO_PI = 2.0 * VecUtil::PI |
| Constant 2*pi. | |
A class of vector utilities.
Definition at line 15 of file VecUtil.hpp.
| void cross | ( | double * | a, |
| double * | b, | ||
| double * | c | ||
| ) | [inline, static] |
Cross product.
Definition at line 76 of file VecUtil.hpp.
| double dist2 | ( | double * | a, |
| double * | b | ||
| ) | [inline, static] |
| double dot | ( | double * | a, |
| double * | b | ||
| ) | [inline, static] |
Dot product.
| a | First vector |
| b | Second vector |
Definition at line 58 of file VecUtil.hpp.
| double length_sq | ( | double * | a | ) | [inline, static] |
Length squared of a vector.
| a | Vector |
Definition at line 60 of file VecUtil.hpp.
| void normalize | ( | double * | a | ) | [inline, static] |
double PI = acos(-1.0) [static] |
Constant PI.
Definition at line 52 of file VecUtil.hpp.
double TWO_PI = 2.0 * VecUtil::PI [static] |
Constant 2*pi.
Definition at line 55 of file VecUtil.hpp.