We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a5c4c1 + 52b5a31 commit f11913eCopy full SHA for f11913e
1 file changed
DrawShape/Drawer.h
@@ -43,7 +43,7 @@ static constexpr double ANGLE_TOLERANCE = 0.00001;
43
// 円周率
44
static constexpr double PI = 3.141592653589793;
45
// 線分、円弧の座標コレクションのインデックス値
46
-enum { START = 0, END = 1, CENTER = 2, BASE=0 };
+enum { START = 0, END = 1, CENTER = 2, BASE = 0 };
47
48
// JSONキー:レイヤー配列
49
static const std::tstring JSON_KEY_LAYERS = _T("Layers");
@@ -364,7 +364,7 @@ class Util
364
// 始点と中心点が一致
365
if (Util::IsSamePoint(arc[START], arc[CENTER])) return false;
366
// 終点と中心点が一致
367
- if (Util::IsSamePoint(arc[START], arc[CENTER])) return false;
+ if (Util::IsSamePoint(arc[END], arc[CENTER])) return false;
368
// 半径が不一致
369
if (!Util::IsZeroLength(
370
arc[START].Length(arc[CENTER]) - arc[END].Length(arc[CENTER])
0 commit comments