DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
map a square to a circle
function map(x, y) { return [ x * Math.sqrt(1 - y * y / 2), y * Math.sqrt(1 - x * x / 2)]; }
Source by www.xarg.org #
PREVIOUS
NEXT
Tagged:
#map
#square
#circle
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit