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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
pub use math::{Matrix2d, Scalar, Vec2d};
pub type Area<T = Scalar> = T;
pub type Color = [ColorComponent; 4];
pub type ColorComponent = f32;
pub type Line<T = Scalar> = [T; 4];
pub type SourceRectangle<T = Scalar> = [T; 4];
pub type Polygon<'a, T = Scalar> = &'a [Vec2d<T>];
pub type Polygons<'a, T = Scalar> = &'a [Polygon<'a, T>];
pub type Radius<T = Scalar> = T;
pub type Resolution = u32;
pub type Ray<T = Scalar> = [T; 4];
pub type Rectangle<T = Scalar> = [T; 4];
pub type Triangle<T = Scalar> = [Vec2d<T>; 3];
pub type Width<T = Scalar> = T;
pub type FontSize = u32;