![]() |
RflySimSDK v3.05
RflySimSDK说明文档
|
#include <vrpn_FixedPoint.h>
Public 类型 | |
typedef detail::IntegerOfSizeAndSignedness< INTEGER_BITS, SIGNED >::type | IntegerType |
typedef detail::IntegerOfSizeAndSignedness< INTEGER_BITS+FRACTIONAL_BITS, SIGNED >::type | RawType |
Public 成员函数 | |
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 (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 |
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. |
typedef detail::IntegerOfSizeAndSignedness<INTEGER_BITS,SIGNED>::type IntegerType |
Find an integer type large enough to hold INTEGER_BITS.
|
inline |
Returns a floating-point representation of this fixed-point value.
|
inline |