22 #ifndef SURGSIM_GRAPHICS_OSGRIGIDTRANSFORMCONVERSIONS_H 23 #define SURGSIM_GRAPHICS_OSGRIGIDTRANSFORMCONVERSIONS_H 57 return SurgSim::Math::makeRigidTransform(fromOsg<float>(rotation),
fromOsg(translation));
62 return fromOsg(transform.first, transform.second);
67 return SurgSim::Math::makeRigidTransform(fromOsg<double>(rotation),
fromOsg(translation));
72 return fromOsg(transform.first, transform.second);
79 #endif // SURGSIM_GRAPHICS_OSGRIGIDTRANSFORMCONVERSIONS_H const Eigen::Matrix< float, 2, 2, Eigen::RowMajor > fromOsg(const osg::Matrix2 &matrix)
Convert from OSG to a 2x2 matrix of floats.
Definition: OsgMatrixConversions.h:73
Definitions of quaternion types.
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Eigen::Matrix< float, 3, 1 > Vector3f
A 3D vector of floats.
Definition: Vector.h:41
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:57
Eigen::Quaternion< double > Quaterniond
A quaternion of doubles.
Definition: Quaternion.h:38
Eigen::Quaternion< float > Quaternionf
A quaternion of floats.
Definition: Quaternion.h:34
const osg::Matrix2 toOsg(const Eigen::Matrix< float, 2, 2, MOpt > &matrix)
Convert a fixed-size 2x2 matrix of floats to OSG.
Definition: OsgMatrixConversions.h:56
Conversions to and from OSG vector types.
Conversions to and from OSG quaternion types.
Definitions of small fixed-size vector types.