summaryrefslogtreecommitdiffstats
path: root/AutoVisual/IGPSquare.pde
diff options
context:
space:
mode:
Diffstat (limited to 'AutoVisual/IGPSquare.pde')
-rw-r--r--AutoVisual/IGPSquare.pde32
1 files changed, 16 insertions, 16 deletions
diff --git a/AutoVisual/IGPSquare.pde b/AutoVisual/IGPSquare.pde
index 5ad0823..e77368d 100644
--- a/AutoVisual/IGPSquare.pde
+++ b/AutoVisual/IGPSquare.pde
@@ -21,35 +21,35 @@ class IGPSquare extends IGPFamily {
int amount = 12;
outerSquareVectors = new ArrayList <PVector>(12);
outerSquareVectors.add(alphaCircleVectors.get(0));
- outerSquareVectors.add(extendLine(mid, alphaCircleVectors.get(1), mid.x+radius, false));
- outerSquareVectors.add(extendLine(mid, alphaCircleVectors.get(2), mid.y-radius, true));
+ outerSquareVectors.add(getVectorOnExtendedLine(mid, alphaCircleVectors.get(1), mid.x+radius, false));
+ outerSquareVectors.add(getVectorOnExtendedLine(mid, alphaCircleVectors.get(2), mid.y-radius, true));
outerSquareVectors.add(alphaCircleVectors.get(3));
- outerSquareVectors.add(extendLine(mid, alphaCircleVectors.get(4), mid.y-radius, true));
- outerSquareVectors.add(extendLine(mid, alphaCircleVectors.get(5), mid.x-radius, false));
+ outerSquareVectors.add(getVectorOnExtendedLine(mid, alphaCircleVectors.get(4), mid.y-radius, true));
+ outerSquareVectors.add(getVectorOnExtendedLine(mid, alphaCircleVectors.get(5), mid.x-radius, false));
outerSquareVectors.add(alphaCircleVectors.get(6));
- outerSquareVectors.add(extendLine(mid, alphaCircleVectors.get(7), mid.x-radius, false));
- outerSquareVectors.add(extendLine(mid, alphaCircleVectors.get(8), mid.y+radius, true));
+ outerSquareVectors.add(getVectorOnExtendedLine(mid, alphaCircleVectors.get(7), mid.x-radius, false));
+ outerSquareVectors.add(getVectorOnExtendedLine(mid, alphaCircleVectors.get(8), mid.y+radius, true));
outerSquareVectors.add(alphaCircleVectors.get(9));
- outerSquareVectors.add(extendLine(mid, alphaCircleVectors.get(10), mid.y+radius, true));
- outerSquareVectors.add(extendLine(mid, alphaCircleVectors.get(11), mid.x+radius, false));
+ outerSquareVectors.add(getVectorOnExtendedLine(mid, alphaCircleVectors.get(10), mid.y+radius, true));
+ outerSquareVectors.add(getVectorOnExtendedLine(mid, alphaCircleVectors.get(11), mid.x+radius, false));
outerSquareVectorsSixteen = new ArrayList <PVector>(16);
outerSquareVectorsSixteen.add(alphaCircleVectorsSixteen.get(0));
- outerSquareVectorsSixteen.add(extendLine(mid, alphaCircleVectorsSixteen.get(1), mid.x+radius, false));
+ outerSquareVectorsSixteen.add(getVectorOnExtendedLine(mid, alphaCircleVectorsSixteen.get(1), mid.x+radius, false));
outerSquareVectorsSixteen.add(new PVector(mid.x+radius, mid.y-radius));
- outerSquareVectorsSixteen.add(extendLine(mid, alphaCircleVectorsSixteen.get(3), mid.y-radius, true));
+ outerSquareVectorsSixteen.add(getVectorOnExtendedLine(mid, alphaCircleVectorsSixteen.get(3), mid.y-radius, true));
outerSquareVectorsSixteen.add(alphaCircleVectorsSixteen.get(4));
- outerSquareVectorsSixteen.add(extendLine(mid, alphaCircleVectorsSixteen.get(5), mid.y-radius, true));
+ outerSquareVectorsSixteen.add(getVectorOnExtendedLine(mid, alphaCircleVectorsSixteen.get(5), mid.y-radius, true));
outerSquareVectorsSixteen.add(new PVector(mid.x-radius, mid.y-radius));
- outerSquareVectorsSixteen.add(extendLine(mid, alphaCircleVectorsSixteen.get(7), mid.x-radius, false));
+ outerSquareVectorsSixteen.add(getVectorOnExtendedLine(mid, alphaCircleVectorsSixteen.get(7), mid.x-radius, false));
outerSquareVectorsSixteen.add(alphaCircleVectorsSixteen.get(8));
- outerSquareVectorsSixteen.add(extendLine(mid, alphaCircleVectorsSixteen.get(9), mid.x-radius, false));
+ outerSquareVectorsSixteen.add(getVectorOnExtendedLine(mid, alphaCircleVectorsSixteen.get(9), mid.x-radius, false));
outerSquareVectorsSixteen.add(new PVector(mid.x-radius, mid.y+radius));
- outerSquareVectorsSixteen.add(extendLine(mid, alphaCircleVectorsSixteen.get(11), mid.y+radius, true));
+ outerSquareVectorsSixteen.add(getVectorOnExtendedLine(mid, alphaCircleVectorsSixteen.get(11), mid.y+radius, true));
outerSquareVectorsSixteen.add(alphaCircleVectorsSixteen.get(12));
- outerSquareVectorsSixteen.add(extendLine(mid, alphaCircleVectorsSixteen.get(13), mid.y+radius, true));
+ outerSquareVectorsSixteen.add(getVectorOnExtendedLine(mid, alphaCircleVectorsSixteen.get(13), mid.y+radius, true));
outerSquareVectorsSixteen.add(new PVector(mid.x+radius, mid.y+radius));
- outerSquareVectorsSixteen.add(extendLine(mid, alphaCircleVectorsSixteen.get(15), mid.x+radius, false));
+ outerSquareVectorsSixteen.add(getVectorOnExtendedLine(mid, alphaCircleVectorsSixteen.get(15), mid.x+radius, false));
}
void createDividingLines(){