Convenience ConstantsΒΆ

class Leap::Constants

Constants used in Leap Motion math functions.

Public Members

const float DEG_TO_RAD

The constant ratio to convert an angle measure from degrees to radians.

Multiply a value in degrees by this constant to convert to radians.

Since
1.0

const float EPSILON

The difference between 1 and the least value greater than 1 that is representable as a float.

Since
2.0

const float PI

The constant pi as a single precision floating point number.

Since
1.0

const float RAD_TO_DEG

The constant ratio to convert an angle measure from radians to degrees.

Multiply a value in radians by this constant to convert to degrees.

Since
1.0