use crate::common::{generate, unref}; use na::Isometry3; use ncollide3d::query; use ncollide3d::shape::{Ball, Cuboid}; use rand::SeedableRng; use rand_isaac::IsaacRng; use test::Bencher; #[path = "../common/macros.rs"] #[macro_use] mod macros; bench_free_fn!( bench_ball_against_ball, query::contact, m1: Isometry3, b1: Ball, m2: Isometry3, b2: Ball, prediction: f32 ); bench_free_fn!( bench_cuboid_against_cuboid, query::contact, m1: Isometry3, b1: Cuboid, m2: Isometry3, b2: Cuboid, prediction: f32 ); //bench_free_fn!( // bench_capsule_against_capsule, // query::contact, // m1: Isometry3, // b1: Capsule, // m2: Isometry3, // b2: Capsule, // prediction: f32 //); // //bench_free_fn!( // bench_cone_against_cone, // query::contact, // m1: Isometry3, // b1: Cone, // m2: Isometry3, // b2: Cone, // prediction: f32 //); // //bench_free_fn!( // bench_cylinder_against_cylinder, // query::contact, // m1: Isometry3, // b1: Cylinder, // m2: Isometry3, // b2: Cylinder, // prediction: f32 //);