Add Vec2 conversion method to 'Vec2i'
This commit is contained in:
parent
e42e6398cb
commit
4aed9ef1a7
|
@ -76,6 +76,11 @@ struct Vec2i
|
||||||
{
|
{
|
||||||
return x == other.x && y == other.y;
|
return x == other.x && y == other.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
operator Vec2() const
|
||||||
|
{
|
||||||
|
return Vec2(x, y);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Simple Vertex */
|
/* Simple Vertex */
|
||||||
|
|
Loading…
Reference in New Issue