add: Circle
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
#include <iostream>
|
||||
|
||||
#include "Size.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace frame
|
||||
{
|
||||
struct Vector
|
||||
@@ -56,7 +56,12 @@ namespace frame
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& os, Vector const& v)
|
||||
{
|
||||
return os << "x: "<< v.x << " y: " << v.y;
|
||||
return os << "x: " << v.x << " y: " << v.y;
|
||||
}
|
||||
|
||||
inline Vector operator+(Vector const& a, Vector const& b)
|
||||
{
|
||||
return {a.x + b.x, a.y + b.y};
|
||||
}
|
||||
|
||||
} // namespace frame
|
||||
|
||||
Reference in New Issue
Block a user