All pastes #509012 Raw Edit

Unnamed

public c v1 · immutable
·published 2007-05-25 07:53 UTC
rendered paste body
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);