blah/public/blah/math/circle.h
2020-12-05 13:49:22 -08:00

22 lines
373 B
C++

#pragma once
#include <blah/math/vec2.h>
namespace Blah
{
struct Circle
{
Vec2 center;
float radius;
Circle()
: center(), radius(0) {}
Circle(Vec2 center, float radius)
: center(center), radius(radius) {}
Circle(float x, float y, float radius)
: center(x, y), radius(radius) {}
void project(const Vec2& axis, float* min, float* max) const;
};
}