/* Copyright (c) 2004-2006, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.math.curves"); dojo.require("dojo.math"); dojo.math.curves={Line:function(_1,_2){ this.start=_1; this.end=_2; this.dimensions=_1.length; for(var i=0;i<_1.length;i++){ _1[i]=Number(_1[i]); } for(var i=0;i<_2.length;i++){ _2[i]=Number(_2[i]); } this.getValue=function(n){ var _5=new Array(this.dimensions); for(var i=0;i=1){ return this.p[this.p.length-1]; } if(_8<=0){ return this.p[0]; } var _9=new Array(this.p[0].length); for(var k=0;j=this.p.length){ i1=this.p.length-1; } var i2=_14+2; if(i2>=this.p.length){ i2=this.p.length-1; } var u=_15; var u2=_15*_15; var u3=_15*_15*_15; var _1d=new Array(this.p[0].length); for(var k=0;k=r[0]&&n