mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
Fix circle calculation
This commit is contained in:
@@ -75,7 +75,7 @@ Vector3f CircleShape::getPoint(unsigned int index) const
|
||||
{
|
||||
static const float pi = 3.141592654f;
|
||||
|
||||
float angle = index * 2 * pi / m_pointCount - pi / 2;
|
||||
float angle = 2.5f * pi - index * 2 * pi / m_pointCount;
|
||||
float x = std::cos(angle) * m_radius;
|
||||
float y = std::sin(angle) * m_radius;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user