Created
July 5, 2012 06:46
-
-
Save nicokruger/3051867 to your computer and use it in GitHub Desktop.
Rot and join to get pairs
This file contains 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
var points = [[-200,-200],[200,-200],[200,200],[-200,200]], | |
lines = _(points).zip(rot(1, points)).map(function (x) { | |
var a = x[0], b = x[1]; | |
return makeLine(a[0], a[1], b[0], b[1], 0); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment