File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -287,19 +287,19 @@ class BuildingShapeUtils extends ShapeUtils {
287287 p0 = points [ points . length - 1 ] ;
288288 p1 = points [ 0 ] ;
289289 p2 = points [ 1 ] ;
290- let angle = Math . atan2 ( p2 . y - p1 . y , p2 . x - p1 . x ) - Math . atan2 ( p0 . y - p1 . y , p0 . x - p1 . x )
290+ let angle = Math . atan2 ( p2 . y - p1 . y , p2 . x - p1 . x ) - Math . atan2 ( p0 . y - p1 . y , p0 . x - p1 . x ) ;
291291 angles . push ( angle ) ;
292292 for ( let i = 1 ; i < points . length - 2 ; i ++ ) {
293293 p0 = points [ i - 1 ] ;
294294 p1 = points [ i ] ;
295295 p2 = points [ i + 1 ] ;
296- angle = Math . atan2 ( p2 . y - p1 . y , p2 . x - p1 . x ) - Math . atan2 ( p0 . y - p1 . y , p0 . x - p1 . x )
296+ angle = Math . atan2 ( p2 . y - p1 . y , p2 . x - p1 . x ) - Math . atan2 ( p0 . y - p1 . y , p0 . x - p1 . x ) ;
297297 angles . push ( angle ) ;
298298 }
299299 p0 = points [ 0 ] ;
300300 p1 = points [ points . length - 1 ] ;
301301 p2 = points [ points . length - 2 ] ;
302- angle = Math . atan2 ( p2 . y - p1 . y , p2 . x - p1 . x ) - Math . atan2 ( p0 . y - p1 . y , p0 . x - p1 . x )
302+ angle = Math . atan2 ( p2 . y - p1 . y , p2 . x - p1 . x ) - Math . atan2 ( p0 . y - p1 . y , p0 . x - p1 . x ) ;
303303 angles . push ( angle ) ;
304304 return angles ;
305305 }
You can’t perform that action at this time.
0 commit comments