more test

This commit is contained in:
Quaternions 2023-11-30 18:53:19 -08:00
parent d8f57eb9fa
commit 78b436741c

View File

@ -1864,6 +1864,42 @@ fn test_collision_oblique(){
),Some(Time::from_secs(2))); ),Some(Time::from_secs(2)));
} }
#[test] #[test]
fn test_collision_oblique_north(){
test_collision(Body::new(
Planar64Vec3::int(0,4,0),
Planar64Vec3::int(0,-1,-1),
Planar64Vec3::int(0,-1,0),
Time::ZERO
),Some(Time::from_nanos(732050807)));
}
#[test]
fn test_collision_oblique_east(){
test_collision(Body::new(
Planar64Vec3::int(0,4,0),
Planar64Vec3::int(1,-1,0),
Planar64Vec3::int(0,-1,0),
Time::ZERO
),Some(Time::from_nanos(732050807)));
}
#[test]
fn test_collision_oblique_south(){
test_collision(Body::new(
Planar64Vec3::int(0,4,0),
Planar64Vec3::int(0,-1,1),
Planar64Vec3::int(0,-1,0),
Time::ZERO
),Some(Time::from_nanos(732050807)));
}
#[test]
fn test_collision_oblique_west(){
test_collision(Body::new(
Planar64Vec3::int(0,4,0),
Planar64Vec3::int(-1,-1,0),
Planar64Vec3::int(0,-1,0),
Time::ZERO
),Some(Time::from_nanos(732050807)));
}
#[test]
fn zoom_hit_nothing(){ fn zoom_hit_nothing(){
test_collision(Body::new( test_collision(Body::new(
Planar64Vec3::int(0,10,0), Planar64Vec3::int(0,10,0),