source:
Dev/trunk/d3/src/scale/bilinear.js
@
76
Last change on this file since 76 was 76, checked in by fpvanagthoven, 14 years ago | |
---|---|
File size: 212 bytes |
Rev | Line | |
---|---|---|
[76] | 1 | function d3_scale_bilinear(domain, range, uninterpolate, interpolate) { |
2 | var u = uninterpolate(domain[0], domain[1]), | |
3 | i = interpolate(range[0], range[1]); | |
4 | return function(x) { | |
5 | return i(u(x)); | |
6 | }; | |
7 | } |
Note: See TracBrowser
for help on using the repository browser.