1
1
//! A small math library specialized for 2d screen graphics.
2
//!
3
//! ## Feature Flags
4
//!
5
//! To enable serialization of most types, enable the `serde` feature flag.
6

            
7
#![forbid(unsafe_code)]
8
#![warn(
9
    clippy::cargo,
10
    missing_docs,
11
    clippy::pedantic,
12
    future_incompatible,
13
    rust_2018_idioms
14
)]
15
#![allow(clippy::if_not_else, clippy::module_name_repetitions)]
16
#![cfg_attr(doc, warn(rustdoc::all))]
17

            
18
mod angle;
19
mod approxeq;
20
mod displayable;
21
mod figure;
22
mod num;
23
mod point;
24
mod rect;
25
mod scale;
26
mod size;
27
mod vector;
28
mod vectorlike;
29

            
30
pub use approx;
31
pub use num_traits;
32

            
33
pub use self::{
34
    angle::Angle,
35
    approxeq::Approx,
36
    displayable::{DisplayScale, Displayable, Pixels, Points, Scaled},
37
    figure::Figure,
38
    num::{Ceil, Floor, One, Round, Zero},
39
    rect::{ExtentsRect, Rect, Rectlike, SizedRect},
40
    scale::Scale,
41
    vectorlike::{Point, Size, Vector, Vectorlike},
42
};