OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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.
 

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.
 
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.
 
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.
 
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.
 

Detailed Description

Header.

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

Definition in file EigenExtras.h.