vrpn
07.33
Virtual Reality Peripheral Network
|
A fixed-point value class. More...
#include <vrpn_FixedPoint.h>
Public Types | |
typedef detail::IntegerOfSize< INTEGER_BITS >::type | IntegerType |
Find an integer type large enough to hold INTEGER_BITS. More... | |
typedef detail::IntegerOfSize< INTEGER_BITS+FRACTIONAL_BITS >::type | RawType |
Public Member Functions | |
template<typename T > | |
T | get () const |
Returns a floating-point representation of this fixed-point value. More... | |
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 (vrpn_int8 x) | |
FixedPoint (vrpn_int16 x) | |
FixedPoint (vrpn_int32 x) | |
FixedPoint (vrpn_uint8 x) | |
FixedPoint (vrpn_uint16 x) | |
FixedPoint (vrpn_uint32 x) | |
FixedPoint (double x) | |
FixedPoint (float x) | |
Debugging functions. | |
RawType | value () const |
A fixed-point value class.
All values are signed, two's-complement.
INTEGER_BITS | The number of bits devoted to the integer part. |
FRACTIONAL_BITS | The number of bits devoted to the fractioal part. |
Definition at line 80 of file vrpn_FixedPoint.h.
typedef detail::IntegerOfSize<INTEGER_BITS>::type vrpn::FixedPoint< INTEGER_BITS, FRACTIONAL_BITS >::IntegerType |
Find an integer type large enough to hold INTEGER_BITS.
Definition at line 85 of file vrpn_FixedPoint.h.
typedef detail::IntegerOfSize<INTEGER_BITS + FRACTIONAL_BITS>::type vrpn::FixedPoint< INTEGER_BITS, FRACTIONAL_BITS >::RawType |
Definition at line 88 of file vrpn_FixedPoint.h.
|
inline |
Definition at line 99 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 103 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 107 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 111 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 115 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 119 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 123 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 127 of file vrpn_FixedPoint.h.
|
inlineexplicit |
Definition at line 131 of file vrpn_FixedPoint.h.
|
inline |
Returns a floating-point representation of this fixed-point value.
Definition at line 143 of file vrpn_FixedPoint.h.
|
inline |
Definition at line 151 of file vrpn_FixedPoint.h.