Skip to content

Commit

Permalink
Return size as Sizef instead of Vector in Rectf
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Aug 16, 2014
1 parent ce72d36 commit 42b9e6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/math/rectf.hpp
Expand Up @@ -19,6 +19,7 @@

#include <assert.h>

#include "math/sizef.hpp"
#include "math/vector.hpp"
#include "object/anchor_point.hpp"

Expand Down Expand Up @@ -89,9 +90,9 @@ class Rectf
set_width(width);
set_height(height);
}
Vector get_size()
Sizef get_size() const
{
return Vector(get_width(), get_height());
return Sizef(get_width(), get_height());
}

void move(const Vector& v)
Expand Down

0 comments on commit 42b9e6d

Please sign in to comment.