Go to the documentation of this file.
5 #include "quaternion.h"
17 template <
typename T>
const fmat<T, 3, 3>&
pose_orientation(
const fmat<T, 3, 4>& pose) {
return reinterpret_cast<const fmat<T, 3, 3>&
>(pose); }
20 template <
typename T>
const fvec<T, 3>&
pose_position(
const fmat<T, 3, 4>& pose) {
return reinterpret_cast<const fvec<T, 3>&
>(pose(0, 3)); }
matrix of fixed size dimensions
Definition: fmat.h:23
void pose_append(fmat< T, 3, 4 > &pose_1, const fmat< T, 3, 4 > &pose_2)
inplace concatenation of a pose matrix
Definition: pose.h:46
vec_type get_rotated(const vec_type &v) const
return rotated vector
Definition: quaternion.h:183
void pose_transform(const fmat< T, 3, 4 > &pose_transform, fmat< T, 3, 4 > &pose)
inplace transformation of a pose matrix with another pose transformation matrix
Definition: pose.h:51
Definition: quaternion.h:15
fmat< T, 3, 4 > pose_concat(const fmat< T, 3, 4 > &pose_1, const fmat< T, 3, 4 > &pose_2)
return concatenate of two pose transformations
Definition: pose.h:56
fmat< T, 3, 4 > pose_construct(const fmat< T, 3, 3 > &orientation, const fvec< T, 3 > &position)
construct pose from rotation matrix and position vector
Definition: pose.h:42
fvec< T, 3 > inverse_pose_transform_point(const fmat< T, 3, 4 > &pose, const fvec< T, 3 > &p)
transform point with inverse of pose matrix
Definition: pose.h:33
fmat< T, 3, 4 > pose_inverse(const fmat< T, 3, 4 > &pose)
return a pose matrix with the inverse pose transformation
Definition: pose.h:40
fvec< T, 3 > inverse_pose_transform_vector(const fmat< T, 3, 4 > &pose, const fvec< T, 3 > &v)
transform vector with inverse of pose matrix
Definition: pose.h:36
void invert_pose(fmat< T, 3, 4 > &pose)
inplace inversion of pose transformation
Definition: pose.h:38
fvec< T, 3 > pose_transform_vector(const fmat< T, 3, 4 > &pose, const fvec< T, 3 > &v)
transform vector with pose matrix
Definition: pose.h:30
fvec< T, 3 > & pose_position(fmat< T, 3, 4 > &pose)
extract position vector from pose matrix
Definition: pose.h:19
fvec< T, 3 > pose_transform_point(const fmat< T, 3, 4 > &pose, const fvec< T, 3 > &p)
transform point with pose matrix
Definition: pose.h:24
void put_matrix(mat_type &M) const
compute equivalent 3x3 rotation matrix
Definition: quaternion.h:122
fmat< T, 3, 3 > & pose_orientation(fmat< T, 3, 4 > &pose)
extract orientation matrix from pose matrix
Definition: pose.h:16
the cgv namespace
Definition: vr_calib.cxx:9