Expand description
Fixed point number implementation for representing non integers efficiently.
If you are using this crate from within agb
, you should refer to it as agb::fixnum
rather than agb_fixnum
.
This crate is updated in lockstep with agb
.
Macros§
- num
- Can be thought of having the signature
num!(float) -> Num<I, N>
.
Structs§
- Num
- A fixed point number represented using
I
withN
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§
- Fixed
Width Signed Integer - Trait for an integer that includes negation
- Fixed
Width Unsigned Integer - 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.
- Signed
Number - A trait for a signed
Number
Functions§
- vec2
- A convenience function for constructing a
Vector2D
Type Aliases§
- Fixed
Num - An often convenient representation for the Game Boy Advance using word sized internal representation for maximum efficiency