- 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 committed by Emile Belanger
parent 0176e52e44
commit 8e1b2d7fad

View file

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