linear_algebra.hpp File Reference

vector geometry and linear algebra routines. More...

#include <cmath>
#include <iosfwd>
#include <vector>
#include <boost/numeric/ublas/symmetric.hpp>
#include <btk/core/math/constants.hpp>
#include <btk/core/math/btk_vector.hpp>
#include <btk/core/math/btk_matrix.hpp>
#include <btk/core/math/vector_math.hpp>

Go to the source code of this file.

Namespaces

namespace  BTK
namespace  BTK::MATH

Typedefs

Vector and Matrix types.
The BTK* types are typedefs to appropriate classes in the Boost::ublas linear algebra library.

Using these types in the BTK makes it easier to write/read linear algebra code, and easier to switch the code to other linear algebra systems (should that ever become necessary).

typedef uBLAS::symmetric_matrix<
double > 
BTKSymmetricMatrix

Functions

bool within_sqr_dist (BTKVector const &a, BTKVector const &b, double r_squared)
 See if two vectors are within a squared distance threshold of one another.
double point_angle (BTKVector const &v1, BTKVector const &v2, BTKVector const &v3)
 calculate the angle formed by v1-v2 amd v3-v2
double point_dihedral (BTKVector const &a, BTKVector const &b, BTKVector const &c, BTKVector const &d)
 Calculate the dihedral angle between the planes a-b-c and d-c-b.
BTKVector set_vector_from_dihedral (BTKVector const &v3, BTKVector const &v2, BTKVector const &v1, double len34, double ang234, double dih1234)
 calculate vector position from a dihedral angle
BTKVector set_vector_from_two_angles (BTKVector const &v3, BTKVector const &v2, BTKVector const &v1, double len34, double ang234, double ang134)
 Calculate vector position from two vector angles.


Detailed Description

vector geometry and linear algebra routines.


Generated on Sun Jul 15 20:46:28 2007 for BTK Core by  doxygen 1.5.1