OSVR-Core
Namespaces | Typedefs | Functions
EigenExtras.h File Reference

Header. More...

#include <osvr/Util/EigenCoreGeometry.h>
#include <type_traits>

Go to the source code of this file.

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 
 osvr::util
 The Util library: Functionality not necessarily coupled to any particular core library, serving more as a common base layer behind all systems.
 

Typedefs

using osvr::util::ColMatrix44d = Eigen::Matrix4d
 
using osvr::util::ColVector3d = Eigen::Vector3d
 
using osvr::util::ColVector4d = Eigen::Vector4d
 
using osvr::util::RowMatrix44d = Eigen::Matrix< double, 4, 4, Eigen::RowMajor >
 
template<typename Scalar >
using osvr::util::Isometry3 = Eigen::Transform< Scalar, 3, Eigen::Isometry >
 
template<typename Scalar >
using osvr::util::Translation3 = Eigen::Translation< Scalar, 3 >
 
template<int Size, typename PrototypeVector >
using osvr::util::detail::SameLayoutVector = Eigen::Matrix< typename PrototypeVector::Scalar, PrototypeVector::IsRowMajor ? Size :1, PrototypeVector::IsRowMajor ? 1 :Size >
 

Functions

template<typename Derived >
detail::SameLayoutVector< 4, Derived > osvr::util::makeHomogeneousPoint (Eigen::MatrixBase< Derived > const &vec)
 Makes a 3D vector into a 4D homogeneous point, with the same options (scalar, row vs col vector) as the input. More...
 
template<typename Derived >
detail::SameLayoutVector< 4, Derived > osvr::util::makeHomogeneousVector (Eigen::MatrixBase< Derived > const &vec)
 Makes a 3D vector into a 4D homogeneous vector, with the same options (scalar, row vs col vector) as the input. More...
 
template<typename Derived >
detail::SameLayoutVector< 3, Derived > osvr::util::extractPoint (Eigen::MatrixBase< Derived > const &homogenous)
 Pulls the 3D point or vector from a 4D vec, performing division by w if it is nonzero. More...
 
template<typename Derived1 , typename Derived2 >
Isometry3< typename Derived1::Scalar > osvr::util::makeIsometry (Eigen::MatrixBase< Derived1 > const &translation, Eigen::RotationBase< Derived2, 3 > const &rotation)
 A simpler, functional-style alternative to .fromPositionOrientationScale when no scaling is performed. More...
 
Eigen::Quaterniond osvr::util::flipQuatSignToMatch (Eigen::Quaterniond const &refQ, Eigen::Quaterniond const &q)
 

Detailed Description

Header.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr