From e345ad66d5e4992857e32534b0818d5ea6aab3d7 Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Sat, 5 Dec 2020 13:49:22 -0800 Subject: [PATCH] additional circle constructor --- public/blah/math/circle.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/blah/math/circle.h b/public/blah/math/circle.h index 95fa1c0..70d7c84 100644 --- a/public/blah/math/circle.h +++ b/public/blah/math/circle.h @@ -14,6 +14,9 @@ namespace Blah Circle(Vec2 center, float radius) : center(center), radius(radius) {} + Circle(float x, float y, float radius) + : center(x, y), radius(radius) {} + void project(const Vec2& axis, float* min, float* max) const; }; } \ No newline at end of file