Algorithm “NoObtuse” in javascript
问题 Algorithm "NoObtuse" in javascript. I have to implement this algo below in a canvas. The user put a set of points and click on the button to call the function "noObtuse" and I have to draw the graph (see image). How can I do it ? No obtuse algoritm EDIT: I change the code with the informations of "MBo" but I don't get what I need, the nextPoint is not the right one (Neither in CW nor in CCW). My code: class Point { constructor(x, y) { this.x = x; this.y = y; this.col = 'red'; } drawDot() {