Add Vec2 conversion method to 'Vec2i'

This commit is contained in:
Jonas Kulla 2013-09-10 04:25:58 +02:00
parent e42e6398cb
commit 4aed9ef1a7
1 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,11 @@ struct Vec2i
{
return x == other.x && y == other.y;
}
operator Vec2() const
{
return Vec2(x, y);
}
};
/* Simple Vertex */