Further tweaks to RANSAC algorithm and line of best fit
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package Vector;
|
||||
|
||||
import processing.core.PApplet;
|
||||
|
||||
import static java.lang.Math.*;
|
||||
import static processing.core.PApplet.cos;
|
||||
import static processing.core.PApplet.sin;
|
||||
@@ -90,4 +92,8 @@ public class Vector {
|
||||
float currentAngle = this.angle();
|
||||
return new Vector(cos(currentAngle + angle), sin(currentAngle + angle)).mul(distance);
|
||||
}
|
||||
|
||||
public void draw(PApplet proc){
|
||||
proc.circle(this.x, this.y, 8);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user