Search
 
SCRIPT & CODE EXAMPLE
 

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)];
}
Comment

map square to circle

function map(x, y) {
    return [
        x * Math.sqrt(1 - y * y / 2), 
        y * Math.sqrt(1 - x * x / 2)];
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: lodash find all in array 
Javascript :: inject js on button click chrome extension 
Javascript :: javascript html video seek to time 
Javascript :: how to check what browser you are using 
Javascript :: extract domain from url js 
Javascript :: javascript validate if string null undefined empty 
Javascript :: npm set author name 
Javascript :: assign input text value jquery 
Javascript :: how to read files in node 
Javascript :: nextelementsibling javascript 
Javascript :: Javascript format date / time 
Javascript :: find if two elements in array sum to given integer js 
Javascript :: js remove all child elements from html 
Javascript :: split string with last character and return array in javascript 
Javascript :: navbar routing in react 
Javascript :: Update select2 after removing an element 
Javascript :: canvas tag html 
Javascript :: Conditionally pass props to react component 
Javascript :: insert array as string google app scripts 
Javascript :: datatables modify rows 
Javascript :: JavaScript BLOCK ENTER 
Javascript :: get form data in js 
Javascript :: javascript limit number of lines in div 
Javascript :: document style 
Javascript :: no routes matched location / react router 
Javascript :: manually set jquery text box 
Javascript :: how to build jquery post data 
Javascript :: Vuejs + Laravel router redirection issue 
Javascript :: react native Setting a timer for a long period of time 
Javascript :: How to loop through an object in JavaScript with the Object.values() method 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =