Browse Source

math: add a default constructor to box classes.

legacy
Sam Hocevar sam 11 years ago
parent
commit
2cdb570799
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/lol/math/geometry.h

+ 10
- 0
src/lol/math/geometry.h View File

@@ -30,6 +30,11 @@ namespace lol


struct Box2D struct Box2D
{ {
inline Box2D()
: A(0.f, 0.f),
B(0.f, 0.f)
{}

inline Box2D(vec2 a, vec2 b) inline Box2D(vec2 a, vec2 b)
: A(a), : A(a),
B(b) B(b)
@@ -40,6 +45,11 @@ struct Box2D


struct Box3D struct Box3D
{ {
inline Box3D()
: A(0.f, 0.f, 0.f),
B(0.f, 0.f, 0.f)
{}

inline Box3D(vec3 a, vec3 b) inline Box3D(vec3 a, vec3 b)
: A(a), : A(a),
B(b) B(b)


Loading…
Cancel
Save