#include <cmath>
#include <btk/core/math/btk_vector.hpp>
Go to the source code of this file.
Namespaces | |
namespace | BTK |
namespace | BTK::MATH |
Functions | |
BTKVector & | normalize (BTKVector &v) |
Normalize a vector to unit length. | |
double | length (BTKVector const &v) |
Get the length of a vector (aka, the l2 norm or euclidean norm). | |
BTKVector | cross (BTKVector const &lhs, BTKVector const &rhs) |
Compute the cross product of two 3D vectors. | |
BTKVector | project (BTKVector const &a, BTKVector const &b) |
Project vector a onto vector b. | |
BTKVector | project_normal (BTKVector const &a, BTKVector const &b) |
Project the component of vector a that is normal to vector b. | |
double | cosine_vector_angle (BTKVector const &v1, BTKVector const &v2) |
Calculate the cosine of the angle between two vectors. | |
double | vector_angle (BTKVector const &v1, BTKVector const &v2) |
Calculate the angle between two vectors. | |
double | vector_dihedral (BTKVector const &v1, BTKVector const &v2, BTKVector const &v3) |
Calculate the dihedral angle formed by three vectors. |