[][src]Crate fpn

Fixed Point Numbers

Fixed point number is designed to provide a memory presentation for real numbers. Currently implemented only for a few cases for purpose of real usages, but will make it flexible enough later.

Re-exports

pub use base::FPN;
pub use common::FPN64;
pub use common::FPN32;
pub use common::F64;
pub use common::F32;
pub use cg::Vector2;
pub use cg::Vector3;
pub use cg::FVector2;
pub use cg::FVector3;
pub use cg::F64Vector2;
pub use cg::F64Vector3;
pub use cg::Dot;
pub use cg::Polar;
pub use cg::Cross;

Modules

base

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

cg

cg module provides basic Vector2 Vector3 struct with primitive scalars and also provides FPN inegrated version. Common ops traits are implemented here.

common

Common FPNs defined including: F64 and F32.

Macros

eq
eq_with_eps
fv2_eq
fv3_eq