Skip to content

Instantly share code, notes, and snippets.

@SciutoAlex
Last active December 22, 2015 13:49
Show Gist options
  • Select an option

  • Save SciutoAlex/6481531 to your computer and use it in GitHub Desktop.

Select an option

Save SciutoAlex/6481531 to your computer and use it in GitHub Desktop.
//linefour point one
point(findIntersection(linepoints([0,height], midpoint([width,0],[width,height/2])), linepoints([width/2, height/2], midpoint([width, height/2],[width,height]))));
midpoint( midpoint([width/2, height/2], [0,height]), [width/2, height]);
midpoint([width/2, height/2], [width/2, height]);
linepoints([width/2, height/2], [width/2, height]).draw();
midpoint([0, height],[width, height]);
midpoint(midpoint([0, height],[width, height]), [width, height]);
midpoint(midpoint(midpoint([0, height],[width, height]), [width, height]), midpoint([width/2, height/2], [width/2, height]));
linepoints(midpoint(midpoint([0, height],[width, height]), [width, height]), midpoint([width/2, height/2], [width/2, height])).draw();
point(findEquidistance(findIntersection(linepoints([0,height], midpoint([width,0],[width,height/2])), linepoints([width/2, height/2], midpoint([width, height/2],[width,height]))), midpoint( midpoint([width/2, height/2], [0,height]), [width/2, height]), midpoint(midpoint(midpoint([0, height],[width, height]), [width, height]), midpoint([width/2, height/2], [width/2, height]))));
//linefour point two
linepoints(midpoint(midpoint( midpoint(midpoint([0,0], [width/2, height/2]), [0,height/2]), [0,0]), midpoint([0,0],[width/2, 0])), findIntersection( linepoints(midpoint(midpoint([0,0],[width, 0]),[width,0]),midpoint( midpoint(midpoint([0,0], [width/2, height/2]), [0,height/2]), [0,0])).draw(), linepoints(midpoint([0,0], midpoint([0,0],[width,0])), midpoint([width,0],[width, height])))).draw();
midpoint(midpoint(midpoint( midpoint(midpoint([0,0], [width/2, height/2]), [0,height/2]), [0,0]), midpoint([0,0],[width/2, 0])), findIntersection( linepoints(midpoint(midpoint([0,0],[width, 0]),[width,0]),midpoint( midpoint(midpoint([0,0], [width/2, height/2]), [0,height/2]), [0,0])).draw(), linepoints(midpoint([0,0], midpoint([0,0],[width,0])), midpoint([width,0],[width, height])).draw()) );
//linefour
var linefour = linepoints(midpoint(midpoint(midpoint( midpoint(midpoint([0,0], [width/2, height/2]), [0,height/2]), [0,0]), midpoint([0,0],[width/2, 0])), findIntersection( linepoints(midpoint(midpoint([0,0],[width, 0]),[width,0]),midpoint( midpoint(midpoint([0,0], [width/2, height/2]), [0,height/2]), [0,0])).draw(), linepoints(midpoint([0,0], midpoint([0,0],[width,0])), midpoint([width,0],[width, height])).draw()) ), point(findEquidistance(findIntersection(linepoints([0,height], midpoint([width,0],[width,height/2])), linepoints([width/2, height/2], midpoint([width, height/2],[width,height]))), midpoint( midpoint([width/2, height/2], [0,height]), [width/2, height]), midpoint(midpoint(midpoint([0, height],[width, height]), [width, height]), midpoint([width/2, height/2], [width/2, height]))))).draw();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment