1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//! A 2D geometry module
//!
//! It contains basic shapes such as rectangles and circles, as well as vectors, lines, and a
//! universal Shape API. It also has matrix-backed Transforms for arbitrary constant-time 2D
//! transformations, such as rotating, scaling, or translating. 
//!
//! The Tilemap allows 2D storage of data in a world-like grid, and also moving objects at given
//! speeds around the map, which is highly useful for games like platformers.

mod vector;
mod rectangle;
mod circle;
mod shape;
mod positioned;
mod tilemap;
mod transform;
mod util;
mod scalar;
pub use self::{
    vector::Vector,
    rectangle::Rectangle,
    circle::Circle,
    positioned::Positioned,
    shape::Shape,
    tilemap::{Tile, Tilemap},
    transform::Transform,
    util::{about_equal, lerp, lerp_angle},
    scalar::Scalar
};