include fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include <iostream>
|
||||
|
||||
#include "Size.hpp"
|
||||
|
||||
@@ -10,7 +11,7 @@ namespace frame
|
||||
int32_t y;
|
||||
|
||||
Vector() = default;
|
||||
Vector(int32_t x, int32_t)
|
||||
Vector(int32_t x, int32_t y)
|
||||
: x(x)
|
||||
, y(y)
|
||||
{
|
||||
@@ -18,7 +19,7 @@ namespace frame
|
||||
|
||||
Vector(Size const& size)
|
||||
: x(size.width)
|
||||
, y(size.width)
|
||||
, y(size.height)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -53,4 +54,9 @@ namespace frame
|
||||
return a;
|
||||
}
|
||||
|
||||
} // namespace frame
|
||||
inline std::ostream& operator<<(std::ostream& os, Vector const& v)
|
||||
{
|
||||
return os << "x: "<< v.x << " y: " << v.y;
|
||||
}
|
||||
|
||||
} // namespace frame
|
||||
|
||||
Reference in New Issue
Block a user