mirror of
https://github.com/NoelFB/blah.git
synced 2025-02-23 14:28:28 +08:00
11 lines
253 B
C++
11 lines
253 B
C++
#include <blah/math/circle.h>
|
|
#include <blah/math/calc.h>
|
|
|
|
using namespace Blah;
|
|
|
|
|
|
void Circle::project(const Vec2& axis, float* min, float* max) const
|
|
{
|
|
*min = Vec2::dot(center - axis * radius, axis);
|
|
*max = Vec2::dot(center + axis * radius, axis);
|
|
} |