From 2cdb57079981df72582cc46180da7ce0acd7f1de Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 20 Feb 2013 12:38:49 +0000 Subject: [PATCH] math: add a default constructor to box classes. --- src/lol/math/geometry.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lol/math/geometry.h b/src/lol/math/geometry.h index f6d1c662..bbc159a4 100644 --- a/src/lol/math/geometry.h +++ b/src/lol/math/geometry.h @@ -30,6 +30,11 @@ namespace lol struct Box2D { + inline Box2D() + : A(0.f, 0.f), + B(0.f, 0.f) + {} + inline Box2D(vec2 a, vec2 b) : A(a), B(b) @@ -40,6 +45,11 @@ struct Box2D struct Box3D { + inline Box3D() + : A(0.f, 0.f, 0.f), + B(0.f, 0.f, 0.f) + {} + inline Box3D(vec3 a, vec3 b) : A(a), B(b)