質問編集履歴
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,17 +32,9 @@
|
|
32
32
|
|
33
33
|
```python
|
34
34
|
|
35
|
-
#外接円を求める関数
|
35
|
+
#外接円の中心・半径を求める関数
|
36
36
|
|
37
37
|
def circumcenter(pts):
|
38
|
-
|
39
|
-
pts = asarray(pts)
|
40
|
-
|
41
|
-
bary_coords = circumcenter_barycentric(pts)
|
42
|
-
|
43
|
-
center = dot(bary_coords, pts)
|
44
|
-
|
45
|
-
radius = norm(pts[0, :] - center)
|
46
38
|
|
47
39
|
return (center, radius)
|
48
40
|
|