[][src]Module fpn::base

base provides basic fixed point numbers and implemented common ops traits for FPNs with integar primitives.

Structs

FPN

I: Interge type as storage, F: number of bits for fractions.

Constants

COSS
PIS56

PI << 56, (PI ** 2) << 56, (PI * 2) << 56, etc

PIS56_SQUARE
SINS
TANS

Constants used to convert values from cartesian coordinates to polar coordinates Constant tan(a) values with a from (PI/4) * 0 / 64 to (PI/4) * 128 / 64 Constant sin(a) and cos(a) values with a from (PI/4) * 0 / 64 to (PI/4) * 64 / 64

Traits

Pri
PriFloat
PriInt
To

To trait provide the way convert from FPN<I1, F1> to FPN<I2, F2>;