Skip to content

Commit

Permalink
area()とperimeter()のコンテナをm_dataに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogame3334 committed Jan 18, 2024
1 parent a9e41f9 commit 7ae98c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Siv3D/src/Siv3D/MultiPolygon/SivMultiPolygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ namespace s3d
double MultiPolygon::area() const noexcept
{
double total = 0;
for (const auto& polygon : *this)
for (const auto& polygon : m_data)
{
total += polygon.area();
}
Expand All @@ -319,7 +319,7 @@ namespace s3d
double MultiPolygon::perimeter() const noexcept
{
double total = 0;
for (const auto& polygon : *this)
for (const auto& polygon : m_data)
{
total += polygon.perimeter();
}
Expand Down

0 comments on commit 7ae98c1

Please sign in to comment.