OSVR-Core
Public Member Functions | List of all members
osvr::common::Transform Class Reference

Spatial transformation, consisting of both pre and post components. More...

#include <Transform.h>

Public Member Functions

template<typename T1 , typename T2 >
 Transform (T1 const &pre_matrix, T2 const &post_matrix)
 
template<typename T >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW void concatPre (T const &xform)
 
template<typename T >
void concatPost (T const &xform)
 
void transform (Transform const &other)
 Update this transformation by the application of another transformation around it. More...
 
Eigen::Matrix4d transform (Eigen::Matrix4d const &input) const
 Apply the transformation to a matrix representing a pose.
 
Eigen::Vector3d transformDerivative (Eigen::Ref< Eigen::Vector3d const > const &vec)
 Apply only the rotation/basis change (not the translation) to a vector representing a velocity or acceleration.
 
Eigen::Quaterniond transformDerivative (Eigen::Quaterniond const &quat)
 Transform a rotational derivative: angular velocity or acceleration. More...
 
Eigen::Matrix4d const & getPre () const
 
Eigen::Matrix4d const & getPost () const
 

Detailed Description

Spatial transformation, consisting of both pre and post components.

Member Function Documentation

§ transform()

void osvr::common::Transform::transform ( Transform const &  other)
inline

Update this transformation by the application of another transformation around it.

§ transformDerivative()

Eigen::Quaterniond osvr::common::Transform::transformDerivative ( Eigen::Quaterniond const &  quat)
inline

Transform a rotational derivative: angular velocity or acceleration.


The documentation for this class was generated from the following file: