回答編集履歴
1
修正
test
CHANGED
@@ -8,6 +8,8 @@
|
|
8
8
|
|
9
9
|
```js
|
10
10
|
|
11
|
+
pi = Math.PI;
|
12
|
+
|
11
13
|
[ x1, y1 ] = [ Math.cos(t)*l/2, Math.sin(t)*l/2 ];
|
12
14
|
|
13
15
|
[ x2, y2 ] = [ Math.cos(pi-t)*l/2, Math.sin(pi-t)*l/2 ];
|