Further tweaks to RANSAC algorithm and line of best fit

This commit is contained in:
Quinn
2023-05-03 16:22:38 -05:00
parent 62e7232435
commit bda601d326
8 changed files with 232 additions and 122 deletions

View File

@@ -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);
}
}