add: Circle

This commit is contained in:
Simon Hardt
2022-03-03 22:24:30 +01:00
parent 8a9d0286ef
commit cd309c04f2
4 changed files with 50 additions and 11 deletions

View File

@@ -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