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
56
57
58
59
60
61
62
63
//! Bounding volumes.

#[doc(inline)]
pub use bounding_volume::bounding_volume::{BoundingVolume, HasBoundingVolume};
#[doc(inline)]
pub use bounding_volume::aabb::{aabb, AABB};
#[doc(inline)]
pub use bounding_volume::bounding_sphere::{bounding_sphere, BoundingSphere};

pub use bounding_volume::aabb_utils::{point_cloud_aabb, support_map_aabb};
pub use bounding_volume::aabb_ball::ball_aabb;
pub use bounding_volume::bounding_sphere_utils::{point_cloud_bounding_sphere,
                                                 point_cloud_bounding_sphere_with_center};
pub use bounding_volume::bounding_volume_bvt::BoundingVolumeInterferencesCollector;

use na::{Point2, Point3};

#[doc(hidden)]
pub mod bounding_volume;
mod bounding_volume_bvt;

#[doc(hidden)]
pub mod aabb;
mod aabb_cuboid;
mod aabb_support_map;
mod aabb_ball;
mod aabb_plane;
mod aabb_convex;
mod aabb_compound;
mod aabb_mesh;
mod aabb_utils;
mod aabb_shape;

#[doc(hidden)]
pub mod bounding_sphere;
mod bounding_sphere_cuboid;
mod bounding_sphere_cone;
mod bounding_sphere_ball;
mod bounding_sphere_cylinder;
mod bounding_sphere_capsule;
mod bounding_sphere_plane;
mod bounding_sphere_convex;
mod bounding_sphere_compound;
mod bounding_sphere_triangle;
mod bounding_sphere_segment;
mod bounding_sphere_mesh;
mod bounding_sphere_utils;
mod bounding_sphere_shape;

/*
 *
 * Aliases.
 *
 */
/// A 2D bounding sphere.
pub type BoundingSphere2<N> = BoundingSphere<Point2<N>>;
/// A 2D AABB.
pub type AABB2<N> = AABB<Point2<N>>;

/// A 3D bounding sphere:
pub type BoundingSphere3<N> = BoundingSphere<Point3<N>>;
/// A 3D AABB.
pub type AABB3<N> = AABB<Point3<N>>;