Header.
More...
#include <osvr/Util/Rect.h>
#include <osvr/Util/EigenCoreGeometry.h>
#include <type_traits>
Go to the source code of this file.
|
| 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.
|
|
|
enum | OptMasks |
| The bit masks for testing conditions - do not depend on these being equal to a given enum value of OptBits!
|
|
enum | OptBits |
| The flags (combine with bitwise-or | ) for specifying configuration - do not depend on these being equal to a given enum value of OptMasks!
|
|
|
Eigen::Matrix4d | osvr::util::createProjectionMatrix (Rectd const &bounds, double near, double far) |
| Takes in points at the near clipping plane, as well as the near and far clipping planes. Result matrix maps [l, r] and [b, t] to [-1, 1], and [n, f] to [-1, 1] (should be configurable) More...
|
|
template<projection_options::OptionType options = projection_options::ZOutputSigned | projection_options::RightHandedInput> |
Eigen::Matrix4d | osvr::util::parameterizedCreateProjectionMatrix (Rectd const &bounds, double near, double far) |
| Takes in points at the near clipping plane, as well as the near and far clipping planes. Result matrix maps [l, r] and [b, t] to [-1, 1], and [n, f] to [-1, 1] or [0, 1] depending on presence/absence of ZOutputUnsigned flag bit, taking in right- or left-handed input also as configured.
|
|
Header.
- Date
- 2015
- Author
- Sensics, Inc. http://sensics.com/osvr
Definition in file ProjectionMatrix.h.