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

 LeapUtil
 

Functions

const char * LeapUtil::BoolToStr (uint32_t bVal)
 
Leap::Vector LeapUtil::CartesianToSpherical (const Leap::Vector &vCartesian)
 
template<typename 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 More...
 
Leap::Matrix LeapUtil::ExtractRotation (const Leap::Matrix &mtxTransform)
 create a new matrix with just the rotation block from the argument matrix More...
 
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 More...
 
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 More...
 
float LeapUtil::Heading (const Leap::Vector &vVec)
 compute the polar/spherical heading of a vector direction in z/x plane More...
 
template<typename T >
bool LeapUtil::IsNearEqual (const T &a, const T &b)
 works with Vectors as well as floats More...
 
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. More...
 
template<typename T >
LeapUtil::Max (T lhs, T rhs)
 
float LeapUtil::MaxComponent (const Leap::Vector &vVec)
 
template<typename 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] More...
 
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. More...
 
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 Tue Jun 2 2020 03:58:01