#include <Superpose.h>
Public Types | |
typedef std::vector< Vec3Pair > | VectorSet |
Static Public Member Functions | |
static TransformAndResidual | superpose (const VectorSet &vectors) |
Compute the transformation that orients the first (source) set of vectors to match as closely as possible the second (target) set. |
static TransformAndResidual superpose | ( | const VectorSet & | vectors | ) | [inline, static] |
Compute the transformation that orients the first (source) set of vectors to match as closely as possible the second (target) set.
Using a weighted least-squares criterion.
References SimTK::abs(), SimTK::cross(), SimTK::dot(), Eigen::getAllEigenValuesAndVectors(), SimTK::real(), and Mat< M, N, ELT, CS, RS >::transpose().