13#include <Eigen/Geometry>
77 template <
typename T2>
86 const T& scale_in = T(1))
95 scale(std::move(scale_in)) {}
128 return TransformT<T>(std::move(trans), std::move(rot), std::move(newScale));
135 out.linear().noalias() =
toLinear() * other.linear();
153 out.template topLeftCorner<3, 3>().noalias() =
rotation.toRotationMatrix() *
scale;
185 axis[0] = T(1) - (tyy + tzz);
205 template <
typename T2>
208 this->translation.template
cast<T2>(),
210 static_cast<T2
>(this->scale));
220 T tol = Eigen::NumTraits<T>::dummy_precision())
const {
TransformListT< float > TransformList
TransformT< float > Transform
std::vector< TransformT< T > > TransformListT
Per-joint transform list describing the state of all joints in a skeleton (one entry per joint,...
Eigen::Matrix< T, 3, 3 > Matrix3
TransformT< T > slerp(const TransformT< T > &t1, const TransformT< T > &t2, T weight)
Spherical linear interpolation between two transforms.
Eigen::Matrix< T, 4, 4 > Matrix4
Eigen::Quaternion< T > Quaternion
Unit quaternion representing a 3D rotation.
gsl::span< T > span
Span type alias using gsl::span (C++17 fallback).
TransformT< T > blendTransforms(momentum::span< const TransformT< T > > transforms, momentum::span< const T > weights)
Weighted blend of transforms: rotations are blended via averaged quaternions, translations and scales...
Eigen::Transform< T, 3, Eigen::Affine > Affine3
3D affine transform (linear part + translation).