int createCoords(int lineLength, double initialDirection, double angleToChange, nodeT *inP){ nodeT *traverseP;// *linkHolderP; int i; double x1Coord, x2Coord, y1Coord, y2Coord, angleTally; long colRed, colBlue, colGreen; //initialise the correct variable thingos angleTally = 0.0; x1Coord = 0.0; y1Coord = 0.0; i = 0; //traverse the linked list for (traverseP=inP;traverseP;traverseP=traverseP->linkP) { if (traverseP->theCharThing == 'F') { if (i == 0) { //using sin and cos oppositely since 0.0 points up x2Coord = sin (initialDirection); y2Coord = lineLength * cos (initialDirection);