- added TVector2<> constructor from float*

As we seem to do not like explicit constructors, this will make temporary `TVector3<>` object creation much less probable
This commit is contained in:
alexey.lysiuk 2021-06-13 10:41:45 +03:00
parent ff784fc905
commit 38f2402d2d

View file

@ -82,6 +82,11 @@ struct TVector2
{ {
} }
TVector2(vec_t *o)
: X(o[0]), Y(o[1])
{
}
void Zero() void Zero()
{ {
Y = X = 0; Y = X = 0;