From 57f412d73a151f7a4fa35feaf249808dcbe5b5dc Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 11 Aug 2018 16:59:15 +0200 Subject: Clippy-suggested improvements --- src/hitbox.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/hitbox.rs') diff --git a/src/hitbox.rs b/src/hitbox.rs index 04de484..bd4170e 100644 --- a/src/hitbox.rs +++ b/src/hitbox.rs @@ -3,7 +3,10 @@ use geometry::*; pub trait CircleHitbox { fn pos(&self) -> Vec2d; fn radius(&self) -> f64; - + + /** + * True if the point is inside the hitbox + */ fn touches_point(&self, point: Vec2d) -> bool { self.pos().distance(point) <= self.radius() } -- cgit v1.2.3