We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3c9ee commit 279d875Copy full SHA for 279d875
src/scoord3d.js
@@ -140,6 +140,9 @@ class Circle extends Scoord3D {
140
if (!Array.isArray(coordinates)) {
141
throw new Error('coordinates of Circle must be an array')
142
}
143
+ if (coordinates.length < 2) {
144
+ throw new Error('coordinates of Circle must be an array of length 2')
145
+ }
146
if(coordinates.find(c => c.length !== 3)!== undefined){
147
throw new Error('coordinates of Circle must be a list or size two with points of length 3')
148
0 commit comments