diff options
Diffstat (limited to 'AutoVisual/IGPFamily.pde')
-rw-r--r-- | AutoVisual/IGPFamily.pde | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/AutoVisual/IGPFamily.pde b/AutoVisual/IGPFamily.pde index ac7d4cc..0651ceb 100644 --- a/AutoVisual/IGPFamily.pde +++ b/AutoVisual/IGPFamily.pde @@ -213,7 +213,7 @@ class IGPFamily { translate(mid.x*(-1), mid.y*(-1)); } - PVector lineIntersection(PVector p1, PVector p2, PVector p3, PVector p4) { + PVector getLineIntersection(PVector p1, PVector p2, PVector p3, PVector p4) { PVector b = PVector.sub(p2, p1); PVector d = PVector.sub(p4, p3); @@ -231,7 +231,7 @@ class IGPFamily { return new PVector(p1.x+t*b.x, p1.y+t*b.y); } - float angleBetweenTwoVectors (PVector p1, PVector p2) { + float getAngleBetweenTwoVectors (PVector p1, PVector p2) { float angle = atan2(p1.y-p2.y, p1.x-p2.x); if (angle < 0) { angle+=TWO_PI; @@ -239,7 +239,7 @@ class IGPFamily { return degrees(angle); } - PVector extendLine(PVector startPoint, PVector endPoint, float boundary, boolean vertical){ + PVector getVectorOnExtendedLine(PVector startPoint, PVector endPoint, float boundary, boolean vertical){ float m,n; m = (endPoint.y-startPoint.y)/(endPoint.x-startPoint.x); n = endPoint.y-m*endPoint.x; |