Crate fixnum

Source
Expand description

Fixed point number implementation for representing non integers efficiently.

Macros§

num
Can be thought of having the signature num!(float) -> Num<I, N>.
num_inner

Structs§

Num
A fixed point number represented using I with N bits of fractional precision
Rect
A rectangle with a position in 2d space and a 2d size
Vector2D
A vector of two points: (x, y) represented by integers or fixed point numbers

Traits§

FixedWidthSignedInteger
Trait for an integer that includes negation
FixedWidthUnsignedInteger
A trait for integers that don’t implement unary negation
Number
A trait for everything required to use as the internal representation of the fixed point number.

Type Aliases§

FixedNum
An often convenient representation for the Game Boy Advance using word sized internal representation for maximum efficiency