mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 17:32:26 +00:00
- 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:
parent
ff784fc905
commit
38f2402d2d
1 changed files with 5 additions and 0 deletions
|
@ -82,6 +82,11 @@ struct TVector2
|
|||
{
|
||||
}
|
||||
|
||||
TVector2(vec_t *o)
|
||||
: X(o[0]), Y(o[1])
|
||||
{
|
||||
}
|
||||
|
||||
void Zero()
|
||||
{
|
||||
Y = X = 0;
|
||||
|
|
Loading…
Reference in a new issue