Beatmup
|
Fixed-point number. More...
#include <fixed_point.h>
Public Types | |
typedef rtype | underlying_type |
Public Member Functions | |
Fixed () | |
Fixed (const Fixed &another) | |
Fixed (float value) | |
Fixed & | operator= (const float value) |
Fixed & | operator= (const rtype value) |
Fixed | operator+ (const Fixed &another) const |
Fixed | operator- (const Fixed &another) const |
Fixed | operator* (const Fixed &another) const |
Fixed | operator/ (const Fixed &another) const |
operator float () const | |
uint8_t | asTexture () const |
Static Public Member Functions | |
static Fixed | interpret (const underlying_type value) |
static float | min () |
static float | max () |
Protected Member Functions | |
Fixed (const rtype value) | |
Static Protected Member Functions | |
static rtype | clamp (const float val, const rtype min, const rtype max) |
static rtype | fromFloat (const float val) |
Protected Attributes | |
rtype | value |
Fixed-point number.
rtype | Datatype used to store the values |
precision | Number of bits to represent the fractional part |
optype | Datatype used in arithmetic operations |
Definition at line 33 of file fixed_point.h.
typedef rtype Beatmup::Fixed< rtype, precision, optype >::underlying_type |
Definition at line 47 of file fixed_point.h.
|
inlineprotected |
Definition at line 44 of file fixed_point.h.
|
inline |
Definition at line 49 of file fixed_point.h.
|
inline |
Definition at line 51 of file fixed_point.h.
|
inline |
Definition at line 53 of file fixed_point.h.
|
inlinestaticprotected |
Definition at line 36 of file fixed_point.h.
|
inlinestaticprotected |
Definition at line 40 of file fixed_point.h.
|
inline |
Definition at line 55 of file fixed_point.h.
|
inline |
Definition at line 60 of file fixed_point.h.
|
inline |
Definition at line 65 of file fixed_point.h.
|
inline |
Definition at line 69 of file fixed_point.h.
|
inline |
Definition at line 73 of file fixed_point.h.
|
inline |
Definition at line 77 of file fixed_point.h.
|
inline |
Definition at line 82 of file fixed_point.h.
|
inline |
Definition at line 87 of file fixed_point.h.
|
inlinestatic |
Definition at line 93 of file fixed_point.h.
|
inlinestatic |
Definition at line 103 of file fixed_point.h.
|
inlinestatic |
Definition at line 111 of file fixed_point.h.
|
protected |
Definition at line 35 of file fixed_point.h.