From 2cb65f6726bbdecdc57b1544fe11fa6c586783dc Mon Sep 17 00:00:00 2001 From: Jean Fabre-Monplaisir Date: Sun, 1 Feb 2015 19:04:55 +0100 Subject: begin detection collision --- geom.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'geom.hpp') diff --git a/geom.hpp b/geom.hpp index cb8d583..e6dee0c 100644 --- a/geom.hpp +++ b/geom.hpp @@ -177,16 +177,19 @@ struct angular_sector { angular_sector(circarc i, circarc o) : inner(i), outer(o) { assert(i.c.c == o.c.c); + assert(i.theta1 == o.theta1); + assert(i.theta2 == o.theta2); + } bool is_in_sector(vec p) const{ - //TODO + return false; } double dist(vec p) const{ if (is_in_sector(p)) return 0; //TODO - return 29 ; + return 42 ; } }; /* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3