This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
| ## Core Principles | |
| 1. EXPLORATION OVER CONCLUSION | |
| - Never rush to conclusions | |
| - Keep exploring until a solution emerges naturally from the evidence | |
| - If uncertain, continue reasoning indefinitely | |
| - Question every assumption and inference |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // based on the math here: | |
| // http://math.stackexchange.com/a/1367732 | |
| // x1,y1 is the center of the first circle, with radius r1 | |
| // x2,y2 is the center of the second ricle, with radius r2 | |
| function intersectTwoCircles(x1,y1,r1, x2,y2,r2) { | |
| var centerdx = x1 - x2; | |
| var centerdy = y1 - y2; | |
| var R = Math.sqrt(centerdx * centerdx + centerdy * centerdy); | |
| if (!(Math.abs(r1 - r2) <= R && R <= r1 + r2)) { // no intersection |
This demo uses d3.layout.force() to calculate the node positions and then passes those to webGL to render them on the GPU.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %!TEX TS-program = xelatex | |
| \documentclass[12pt]{scrartcl} | |
| % The declaration of the document class: | |
| % The second line here, i.e. | |
| % \documentclass[12pt]{scrartcl} | |
| % is a standard LaTeX document class declaration: | |
| % we say what kind of document we are making in curly brackets, | |
| % and specify any options in square brackets. |