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
49
50
51
52
53
54
55
//! Miscelaneous elementary geometric utilities.

#![deny(non_camel_case_types)]
#![deny(unused_parens)]
#![deny(non_upper_case_globals)]
#![deny(unused_qualifications)]
#![deny(missing_docs)]
#![deny(unused_results)]
#![warn(unused_imports)]
#![allow(missing_copy_implementations)] // FIXME: deny this.
#![doc(html_root_url = "http://ncollide.org/rustdoc")]

extern crate rand;
extern crate rustc_serialize;
extern crate num;
extern crate nalgebra as na;
extern crate ncollide_math as math;

pub use center::center;
pub use project_homogeneous::{project_homogeneous, project_homogeneous_to};
pub use triangle::{circumcircle, is_affinely_dependent_triangle3,
                   is_affinely_dependent_triangle, is_point_in_triangle, triangle_area,
                   triangle_center, triangle_perimeter};
pub use tetrahedron::{tetrahedron_volume, tetrahedron_signed_volume, tetrahedron_center};
pub use cleanup::remove_unused_points;
pub use derivatives::{dcos, dsin, binom};
pub use optimization::{maximize_with_newton, newton, minimize_with_bfgs, bfgs,
                       LineSearch, BacktrackingLineSearch};
pub use hashable_partial_eq::HashablePartialEq;
#[doc(inline)]
#[doc(inline)]
pub use as_bytes::AsBytes;
pub use cov::{cov, cov_and_center, center_reduce};
pub use median::median;
pub use sort::sort3;
pub use cross3::cross3;
pub use point_cloud_support_point::point_cloud_support_point;


pub mod data;
mod center;
mod project_homogeneous;
mod tetrahedron;
mod triangle;
mod cleanup;
mod derivatives;
mod optimization;
mod hashable_partial_eq;
#[doc(hidden)]
pub mod as_bytes;
mod cov;
mod median;
mod sort;
mod cross3;
mod point_cloud_support_point;