2012-11-01 23:14:07 +00:00
|
|
|
#[link(name = "lmath",
|
2012-09-07 10:48:47 +00:00
|
|
|
vers = "0.1",
|
2012-11-02 03:59:51 +00:00
|
|
|
uuid = "A2DEEB53-EB35-4B44-B247-9044B57E3BA5",
|
2012-11-01 01:59:53 +00:00
|
|
|
author = "Brendan Zabarauskas",
|
2012-11-06 04:03:14 +00:00
|
|
|
url = "https://github.com/bjz/lmath-rs")];
|
2012-09-07 10:48:47 +00:00
|
|
|
|
2012-11-01 01:59:53 +00:00
|
|
|
#[comment = "A generic linear algebra library."];
|
2012-11-01 01:59:21 +00:00
|
|
|
#[license = "APL2"];
|
2012-09-07 10:48:47 +00:00
|
|
|
#[crate_type = "lib"];
|
|
|
|
|
2012-09-24 02:54:24 +00:00
|
|
|
extern mod std;
|
2012-09-07 10:48:47 +00:00
|
|
|
|
2012-10-29 11:53:25 +00:00
|
|
|
pub mod matrix;
|
2012-09-29 08:41:48 +00:00
|
|
|
pub mod projection;
|
2012-10-29 11:53:25 +00:00
|
|
|
pub mod quaternion;
|
|
|
|
pub mod vector;
|
2012-10-28 11:43:23 +00:00
|
|
|
|
2012-11-05 10:31:52 +00:00
|
|
|
#[test]
|
|
|
|
mod test {
|
|
|
|
mod test_matrix;
|
|
|
|
mod test_projection;
|
|
|
|
mod test_quaternion;
|
|
|
|
mod test_vector;
|
|
|
|
}
|
|
|
|
|
2012-11-01 23:15:57 +00:00
|
|
|
use common::*;
|
|
|
|
pub mod common {
|
|
|
|
pub mod math;
|
2012-11-02 00:10:27 +00:00
|
|
|
pub mod ncast;
|
|
|
|
pub mod ntrait;
|
2012-11-01 23:15:57 +00:00
|
|
|
}
|
|
|
|
|
2012-11-06 01:57:15 +00:00
|
|
|
pub mod funs {
|
|
|
|
pub mod boolv;
|
|
|
|
pub mod common;
|
|
|
|
pub mod exp;
|
|
|
|
pub mod relv;
|
|
|
|
pub mod trig;
|
2012-11-05 10:31:52 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
mod test {
|
2012-11-06 01:57:15 +00:00
|
|
|
mod test_boolv;
|
2012-11-05 10:31:52 +00:00
|
|
|
}
|
2012-10-28 11:43:23 +00:00
|
|
|
}
|