Classes | Namespaces | Functions | Variables
LeapUtil.h File Reference
#include "Leap.h"
Include dependency graph for LeapUtil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LeapUtil::Camera
struct  LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerEntry
struct  LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >::ManagedPointerPool
class  LeapUtil::RollingAverage< _HistoryLength >
class  LeapUtil::ScrollMomentum
 Utility class for adding simple momentum to 2D or 3D UI elements. More...
class  LeapUtil::SmartArrayDestructor< T >
 alternative destructor for arrays of objects More...
class  LeapUtil::SmartInstanceDestructor< T >
 default destruction template class used by smart pointer. More...
class  LeapUtil::SmartPointer< T, Destructor, ManagedPointerPoolSize >

Namespaces

namespace  LeapUtil

Functions

const char * LeapUtil::BoolToStr (uint32_t bVal)
Leap::Vector LeapUtil::CartesianToSpherical (const Leap::Vector &vCartesian)
template<typename T >
T LeapUtil::Clamp (T inVal, T minVal, T maxVal)
Leap::Vector LeapUtil::ComponentWiseMax (const Leap::Vector &vLHS, const Leap::Vector &vRHS)
Leap::Vector LeapUtil::ComponentWiseMin (const Leap::Vector &vLHS, const Leap::Vector &vRHS)
Leap::Vector LeapUtil::ComponentWiseReciprocal (const Leap::Vector &vVec)
Leap::Vector LeapUtil::ComponentWiseScale (const Leap::Vector &vLHS, const Leap::Vector &vRHS)
float LeapUtil::Elevation (const Leap::Vector &vVec)
 compute the spherical elevation of a vector direction in y above the z/x plane
Leap::Matrix LeapUtil::ExtractRotation (const Leap::Matrix &mtxTransform)
 create a new matrix with just the rotation block from the argument matrix
template<class Vec2 >
Leap::Vector LeapUtil::FromVector2 (const Vec2 &vIn, float fZ=0.0f)
 requires that the source vector type have direct member access with names x, y
template<class Vec3 >
Leap::Vector LeapUtil::FromVector3 (const Vec3 &vIn)
 requires that the source vector type have direct member access with names x, y, z
float LeapUtil::Heading (const Leap::Vector &vVec)
 compute the polar/spherical heading of a vector direction in z/x plane
template<typename T >
bool LeapUtil::IsNearEqual (const T &a, const T &b)
 works with Vectors as well as floats
bool LeapUtil::IsNearZero (float fVal)
bool LeapUtil::IsNearZero (const Leap::Vector &vVec)
template<typename InterpType , typename ParamType >
InterpType LeapUtil::Linterp (InterpType a, InterpType b, ParamType t)
 works with Vector as well as floating point scalar types.
template<typename T >
T LeapUtil::Max (T lhs, T rhs)
float LeapUtil::MaxComponent (const Leap::Vector &vVec)
template<typename T >
T LeapUtil::Min (T lhs, T rhs)
float LeapUtil::MinComponent (const Leap::Vector &vVec)
Leap::Vector LeapUtil::NormalizeSpherical (const Leap::Vector &vSpherical)
 set magnitude to 1 and bring heading to (-Pi,Pi], elevation into [-Pi/2, Pi/2]
Leap::Matrix LeapUtil::RigidInverse (const Leap::Matrix &mtxTransform)
Leap::Matrix LeapUtil::RotationInverse (const Leap::Matrix &mtxRot)
 returns a matrix representing the inverse rotation by simple transposition of the rotation block.
Leap::Vector LeapUtil::SphericalToCartesian (const Leap::Vector &vSpherical)

Variables

static const float LeapUtil::kf2Pi = kfPi + kfPi
static const float LeapUtil::kfEpsilon = 0.00001f
static const float LeapUtil::kfHalfPi = kfPi * 0.5f
static const float LeapUtil::kfPi = Leap::PI


leap_motion
Author(s): Florian Lier , Mirza Shah , Isaac IY Saito
autogenerated on Sat Jun 8 2019 18:47:25