Changeset 2460


Ignore:
Timestamp:
Feb 20, 2013, 1:38:49 PM (6 years ago)
Author:
sam
Message:

math: add a default constructor to box classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/math/geometry.h

    r2459 r2460  
    3131struct Box2D
    3232{
     33    inline Box2D()
     34      : A(0.f, 0.f),
     35        B(0.f, 0.f)
     36    {}
     37
    3338    inline Box2D(vec2 a, vec2 b)
    3439      : A(a),
     
    4146struct Box3D
    4247{
     48    inline Box3D()
     49      : A(0.f, 0.f, 0.f),
     50        B(0.f, 0.f, 0.f)
     51    {}
     52
    4353    inline Box3D(vec3 a, vec3 b)
    4454      : A(a),
Note: See TracChangeset for help on using the changeset viewer.