From 7a8fe60eb17d66771b153280b76546bcf46a9c7e Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Tue, 1 May 2018 11:35:17 +0200 Subject: Vector times scalar and unit vectors --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 98dd39f..857e744 100644 --- a/src/main.rs +++ b/src/main.rs @@ -66,8 +66,7 @@ impl App for BugBasherGame { let angle = angle_dist.ind_sample(&mut self.rng); self.bugs.push(Bug::new( angle.cos()*1000., - angle.sin()*1000., - angle + PI + angle.sin()*1000. )); } -- cgit v1.2.3