1#![feature(decl_macro)]
4#![feature(stmt_expr_attributes)]
5
6pub use vek::approx;
7pub use vek::num_traits;
8pub use vek as vek;
9
10pub mod geometry;
11
12mod fixed;
13mod traits;
14mod types;
15
16pub use self::fixed::*;
17pub use self::traits::*;
18pub use self::types::*;
19
20pub const COMPONENT_INDEX_X : usize = 0;
22pub const COMPONENT_INDEX_Y : usize = 1;
24pub const COMPONENT_INDEX_Z : usize = 2;
26pub const COMPONENT_INDEX_W : usize = 3;
28
29
30#[doc(hidden)]
32#[macro_export]
33macro_rules! show {
34 ($e:expr) => { println!("{}: {:?}", stringify!($e), $e); }
35}
36
37pub fn report_sizes() {
39 use std::mem::size_of;
40 println!("report sizes...");
41 show!(size_of::<Vector4 <f32>>());
42 show!(size_of::<Matrix2 <f32>>());
43 show!(size_of::<Matrix3 <f32>>());
44 show!(size_of::<Rotation2 <f32>>());
45 show!(size_of::<Rotation3 <f32>>());
46 println!("...report sizes");
47}