vrpn 07.35
Virtual Reality Peripheral Network
|
A fixed-point value class. More...
#include <vrpn_FixedPoint.h>
Public Types | |
typedef detail::IntegerOfSizeAndSignedness< INTEGER_BITS, SIGNED >::type | IntegerType |
Find an integer type large enough to hold INTEGER_BITS. | |
typedef detail::IntegerOfSizeAndSignedness< INTEGER_BITS+FRACTIONAL_BITS, SIGNED >::type | RawType |
Public Member Functions | |
Constructors. | |
The bits of an integral type passed to the constructor will be interpreted as as fixed-point value. A floating-point type passed to the constructor will be converted to a fixed-point value. | |
FixedPoint () | |
FixedPoint (typename detail::IntegerOfSizeAndSignedness< 8, SIGNED >::type x) | |
FixedPoint (typename detail::IntegerOfSizeAndSignedness< 16, SIGNED >::type x) | |
FixedPoint (typename detail::IntegerOfSizeAndSignedness< 32, SIGNED >::type x) | |
FixedPoint (double x) | |
FixedPoint (float x) | |
template<typename T > | |
T | get () const |
Returns a floating-point representation of this fixed-point value. | |
Debugging functions. | |
RawType | value () const |
A fixed-point value class.
All values are signed, two's-complement, by default.
INTEGER_BITS | The number of bits devoted to the integer part. |
FRACTIONAL_BITS | The number of bits devoted to the fractional part. |
Definition at line 106 of file vrpn_FixedPoint.h.
typedef detail::IntegerOfSizeAndSignedness<INTEGER_BITS,SIGNED>::type vrpn::FixedPoint< INTEGER_BITS, FRACTIONAL_BITS, SIGNED >::IntegerType |
Find an integer type large enough to hold INTEGER_BITS.
Definition at line 112 of file vrpn_FixedPoint.h.
typedef detail::IntegerOfSizeAndSignedness<INTEGER_BITS+FRACTIONAL_BITS,SIGNED>::type vrpn::FixedPoint< INTEGER_BITS, FRACTIONAL_BITS, SIGNED >::RawType |
Definition at line 115 of file vrpn_FixedPoint.h.
|
inline |
Definition at line 125 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 129 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 134 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 139 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 144 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 148 of file vrpn_FixedPoint.h.
|
inline |
Returns a floating-point representation of this fixed-point value.
Definition at line 160 of file vrpn_FixedPoint.h.
References vrpn::FixedPoint< INTEGER_BITS, FRACTIONAL_BITS, SIGNED >::get().
Referenced by vrpn::FixedPoint< INTEGER_BITS, FRACTIONAL_BITS, SIGNED >::get(), and vrpn_Tracker_OSVRHackerDevKit::on_data_received().
|
inline |
Definition at line 168 of file vrpn_FixedPoint.h.